class PcrSelection {

    public final String getMaskForTPM() {
        final int expectedNumBytesInMask = 3;
        StringBuilder hex = new StringBuilder();

        for (int i = 0; i < expectedNumBytesInMask && i < this.pcrSelect.length;
                i++) {
            hex.append(String.format("%02x", reverseBits(this.pcrSelect[i])));
        }
        while (hex.length() < expectedNumBytesInMask * 2) {
            hex.append("00");
        }
        return hex.toString();
    }

    protected  PcrSelection();
    public  PcrSelection(final byte[] pcrSelect);
    public  PcrSelection(final long pcrSelectLong);

}