Lines Matching defs:representativeBitLength
23 size_t PSSR_MEM_Base::MaxRecoverableLength(size_t representativeBitLength, size_t hashIdentifierLength, size_t digestLength) const
26 return SaturatingSubtract(representativeBitLength, MinRepresentativeBitLength(hashIdentifierLength, digestLength)) / 8;
48 byte *representative, size_t representativeBitLength) const
50 assert(representativeBitLength >= MinRepresentativeBitLength(hashIdentifier.second, hash.DigestSize()));
53 const size_t representativeByteLength = BitsToBytes(representativeBitLength);
80 if (representativeBitLength % 8 != 0)
81 representative[0] = (byte)Crop(representative[0], representativeBitLength % 8);
86 byte *representative, size_t representativeBitLength,
89 assert(representativeBitLength >= MinRepresentativeBitLength(hashIdentifier.second, hash.DigestSize()));
92 const size_t representativeByteLength = BitsToBytes(representativeBitLength);
108 if (representativeBitLength % 8 != 0)
109 representative[0] = (byte)Crop(representative[0], representativeBitLength % 8);
116 && (size_t)(M - representative - (representativeBitLength % 8 != 0)) >= MinPadLen(digestSize)
117 && recoverableMessageLength <= MaxRecoverableLength(representativeBitLength, hashIdentifier.second, digestSize))