Searched refs:representativeByteLength (Results 1 - 4 of 4) sorted by relevance

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/libcryptoxx-5.6.0/
H A Demsa2.cpp21 size_t representativeByteLength = BitsToBytes(representativeBitLength); local
24 memset(representative+1, 0xbb, representativeByteLength-digestSize-4); // pad with 0xbb
25 byte *afterP2 = representative+representativeByteLength-digestSize-3;
28 representative[representativeByteLength-2] = *hashIdentifier.first;
29 representative[representativeByteLength-1] = 0xcc;
H A Dpssr.cpp53 const size_t representativeByteLength = BitsToBytes(representativeBitLength); local
56 byte *const h = representative + representativeByteLength - u - digestSize;
73 GetMGF().GenerateAndMask(hash, representative, representativeByteLength - u - digestSize, h, digestSize, false);
74 byte *xorStart = representative + representativeByteLength - u - digestSize - salt.size() - recoverableMessageLength - 1;
78 memcpy(representative + representativeByteLength - u, hashIdentifier.first, hashIdentifier.second);
79 representative[representativeByteLength - 1] = hashIdentifier.second ? 0xcc : 0xbc;
92 const size_t representativeByteLength = BitsToBytes(representativeBitLength); local
95 const byte *const h = representative + representativeByteLength - u - digestSize;
104 valid = (representative[representativeByteLength - 1] == (hashIdentifier.second ? 0xcc : 0xbc)) && valid;
105 valid = VerifyBufsEqual(representative + representativeByteLength
[all...]
H A Dgfpcrypt.cpp76 const size_t representativeByteLength = BitsToBytes(representativeBitLength); local
78 const size_t paddingLength = SaturatingSubtract(representativeByteLength, digestSize);
81 hash.TruncatedFinal(representative+paddingLength, STDMIN(representativeByteLength, digestSize));
85 Integer h(representative, representativeByteLength);
86 h >>= representativeByteLength*8 - representativeBitLength;
87 h.Encode(representative, representativeByteLength);
98 const size_t representativeByteLength = BitsToBytes(representativeBitLength); local
100 const size_t paddingLength = SaturatingSubtract(representativeByteLength, digestSize);
103 hash.TruncatedFinal(representative+paddingLength, STDMIN(representativeByteLength, digestSize));
107 Integer h(representative, representativeByteLength);
[all...]
H A Design.h99 size_t representativeByteLength = BitsToBytes(representativeBitLength); local
101 mgf.GenerateAndMask(hash, representative, representativeByteLength, digest, digest.size(), false);

Completed in 43 milliseconds