Home
last modified time | relevance | path

Searched refs:representativeByteLength (Results 1 – 20 of 20) sorted by relevance

/dports/security/cryptopp/cryptopp-8.6.0/
H A Dpssr.cpp59 const size_t representativeByteLength = BitsToBytes(representativeBitLength); in ComputeMessageRepresentative() local
62 byte *const h = representative + representativeByteLength - u - digestSize; in ComputeMessageRepresentative()
79 …GetMGF().GenerateAndMask(hash, representative, representativeByteLength - u - digestSize, h, diges… in ComputeMessageRepresentative()
87 …memcpy(representative + representativeByteLength - u, hashIdentifier.first, hashIdentifier.second); in ComputeMessageRepresentative()
88 representative[representativeByteLength - 1] = 0xcc; in ComputeMessageRepresentative()
92 representative[representativeByteLength - 1] = 0xbc; in ComputeMessageRepresentative()
107 const size_t representativeByteLength = BitsToBytes(representativeBitLength); in RecoverMessageFromRepresentative() local
110 const byte *const h = representative + representativeByteLength - u - digestSize; in RecoverMessageFromRepresentative()
119 …valid = (representative[representativeByteLength - 1] == (hashIdentifier.second ? 0xcc : 0xbc)) &&… in RecoverMessageFromRepresentative()
124 …GetMGF().GenerateAndMask(hash, representative, representativeByteLength - u - digestSize, h, diges… in RecoverMessageFromRepresentative()
[all …]
H A Demsa2.cpp31 size_t representativeByteLength = BitsToBytes(representativeBitLength); in ComputeMessageRepresentative() local
34 memset(representative+1, 0xbb, representativeByteLength-digestSize-4); // pad with 0xbb in ComputeMessageRepresentative()
35 byte *afterP2 = representative+representativeByteLength-digestSize-3; in ComputeMessageRepresentative()
38 representative[representativeByteLength-2] = *hashIdentifier.first; in ComputeMessageRepresentative()
39 representative[representativeByteLength-1] = 0xcc; in ComputeMessageRepresentative()
H A Dgfpcrypt.cpp92 const size_t representativeByteLength = BitsToBytes(representativeBitLength); in ComputeMessageRepresentative() local
94 const size_t paddingLength = SaturatingSubtract(representativeByteLength, digestSize); in ComputeMessageRepresentative()
97 hash.TruncatedFinal(representative+paddingLength, STDMIN(representativeByteLength, digestSize)); in ComputeMessageRepresentative()
101 Integer h(representative, representativeByteLength); in ComputeMessageRepresentative()
102 h >>= representativeByteLength*8 - representativeBitLength; in ComputeMessageRepresentative()
103 h.Encode(representative, representativeByteLength); in ComputeMessageRepresentative()
118 const size_t representativeByteLength = BitsToBytes(representativeBitLength); in ComputeMessageRepresentative() local
120 const size_t paddingLength = SaturatingSubtract(representativeByteLength, digestSize); in ComputeMessageRepresentative()
127 Integer h(representative, representativeByteLength); in ComputeMessageRepresentative()
128 h >>= representativeByteLength*8 - representativeBitLength + 1; in ComputeMessageRepresentative()
[all …]
H A Design.h134 size_t representativeByteLength = BitsToBytes(representativeBitLength); in ComputeMessageRepresentative() local
136 mgf.GenerateAndMask(hash, representative, representativeByteLength, digest, digest.size(), false); in ComputeMessageRepresentative()
/dports/net-p2p/qtum/qtum-mainnet-fastlane-v0.20.3/src/cryptopp/
H A Dpssr.cpp57 const size_t representativeByteLength = BitsToBytes(representativeBitLength); in ComputeMessageRepresentative() local
60 byte *const h = representative + representativeByteLength - u - digestSize; in ComputeMessageRepresentative()
77 …GetMGF().GenerateAndMask(hash, representative, representativeByteLength - u - digestSize, h, diges… in ComputeMessageRepresentative()
85 …memcpy(representative + representativeByteLength - u, hashIdentifier.first, hashIdentifier.second); in ComputeMessageRepresentative()
86 representative[representativeByteLength - 1] = 0xcc; in ComputeMessageRepresentative()
90 representative[representativeByteLength - 1] = 0xbc; in ComputeMessageRepresentative()
105 const size_t representativeByteLength = BitsToBytes(representativeBitLength); in RecoverMessageFromRepresentative() local
108 const byte *const h = representative + representativeByteLength - u - digestSize; in RecoverMessageFromRepresentative()
117 …valid = (representative[representativeByteLength - 1] == (hashIdentifier.second ? 0xcc : 0xbc)) &&… in RecoverMessageFromRepresentative()
122 …GetMGF().GenerateAndMask(hash, representative, representativeByteLength - u - digestSize, h, diges… in RecoverMessageFromRepresentative()
[all …]
H A Demsa2.cpp22 size_t representativeByteLength = BitsToBytes(representativeBitLength); in NAMESPACE_BEGIN() local
25 memset(representative+1, 0xbb, representativeByteLength-digestSize-4); // pad with 0xbb in NAMESPACE_BEGIN()
26 byte *afterP2 = representative+representativeByteLength-digestSize-3; in NAMESPACE_BEGIN()
29 representative[representativeByteLength-2] = *hashIdentifier.first; in NAMESPACE_BEGIN()
30 representative[representativeByteLength-1] = 0xcc; in NAMESPACE_BEGIN()
H A Dgfpcrypt.cpp88 const size_t representativeByteLength = BitsToBytes(representativeBitLength); in ComputeMessageRepresentative() local
90 const size_t paddingLength = SaturatingSubtract(representativeByteLength, digestSize); in ComputeMessageRepresentative()
93 hash.TruncatedFinal(representative+paddingLength, STDMIN(representativeByteLength, digestSize)); in ComputeMessageRepresentative()
97 Integer h(representative, representativeByteLength); in ComputeMessageRepresentative()
98 h >>= representativeByteLength*8 - representativeBitLength; in ComputeMessageRepresentative()
99 h.Encode(representative, representativeByteLength); in ComputeMessageRepresentative()
114 const size_t representativeByteLength = BitsToBytes(representativeBitLength); in ComputeMessageRepresentative() local
116 const size_t paddingLength = SaturatingSubtract(representativeByteLength, digestSize); in ComputeMessageRepresentative()
123 Integer h(representative, representativeByteLength); in ComputeMessageRepresentative()
124 h >>= representativeByteLength*8 - representativeBitLength + 1; in ComputeMessageRepresentative()
[all …]
H A Design.h129 size_t representativeByteLength = BitsToBytes(representativeBitLength); in ComputeMessageRepresentative() local
131 mgf.GenerateAndMask(hash, representative, representativeByteLength, digest, digest.size(), false); in ComputeMessageRepresentative()
/dports/emulators/citra-qt5/citra-ac98458e0/externals/cryptopp/cryptopp/
H A Dpssr.cpp59 const size_t representativeByteLength = BitsToBytes(representativeBitLength); in ComputeMessageRepresentative() local
62 byte *const h = representative + representativeByteLength - u - digestSize; in ComputeMessageRepresentative()
79 …GetMGF().GenerateAndMask(hash, representative, representativeByteLength - u - digestSize, h, diges… in ComputeMessageRepresentative()
87 …memcpy(representative + representativeByteLength - u, hashIdentifier.first, hashIdentifier.second); in ComputeMessageRepresentative()
88 representative[representativeByteLength - 1] = 0xcc; in ComputeMessageRepresentative()
92 representative[representativeByteLength - 1] = 0xbc; in ComputeMessageRepresentative()
107 const size_t representativeByteLength = BitsToBytes(representativeBitLength); in RecoverMessageFromRepresentative() local
110 const byte *const h = representative + representativeByteLength - u - digestSize; in RecoverMessageFromRepresentative()
119 …valid = (representative[representativeByteLength - 1] == (hashIdentifier.second ? 0xcc : 0xbc)) &&… in RecoverMessageFromRepresentative()
124 …GetMGF().GenerateAndMask(hash, representative, representativeByteLength - u - digestSize, h, diges… in RecoverMessageFromRepresentative()
[all …]
H A Demsa2.cpp31 size_t representativeByteLength = BitsToBytes(representativeBitLength); in ComputeMessageRepresentative() local
34 memset(representative+1, 0xbb, representativeByteLength-digestSize-4); // pad with 0xbb in ComputeMessageRepresentative()
35 byte *afterP2 = representative+representativeByteLength-digestSize-3; in ComputeMessageRepresentative()
38 representative[representativeByteLength-2] = *hashIdentifier.first; in ComputeMessageRepresentative()
39 representative[representativeByteLength-1] = 0xcc; in ComputeMessageRepresentative()
H A Dgfpcrypt.cpp92 const size_t representativeByteLength = BitsToBytes(representativeBitLength); in ComputeMessageRepresentative() local
94 const size_t paddingLength = SaturatingSubtract(representativeByteLength, digestSize); in ComputeMessageRepresentative()
97 hash.TruncatedFinal(representative+paddingLength, STDMIN(representativeByteLength, digestSize)); in ComputeMessageRepresentative()
101 Integer h(representative, representativeByteLength); in ComputeMessageRepresentative()
102 h >>= representativeByteLength*8 - representativeBitLength; in ComputeMessageRepresentative()
103 h.Encode(representative, representativeByteLength); in ComputeMessageRepresentative()
118 const size_t representativeByteLength = BitsToBytes(representativeBitLength); in ComputeMessageRepresentative() local
120 const size_t paddingLength = SaturatingSubtract(representativeByteLength, digestSize); in ComputeMessageRepresentative()
127 Integer h(representative, representativeByteLength); in ComputeMessageRepresentative()
128 h >>= representativeByteLength*8 - representativeBitLength + 1; in ComputeMessageRepresentative()
[all …]
H A Design.h134 size_t representativeByteLength = BitsToBytes(representativeBitLength); in ComputeMessageRepresentative() local
136 mgf.GenerateAndMask(hash, representative, representativeByteLength, digest, digest.size(), false); in ComputeMessageRepresentative()
/dports/emulators/citra/citra-ac98458e0/externals/cryptopp/cryptopp/
H A Dpssr.cpp59 const size_t representativeByteLength = BitsToBytes(representativeBitLength); in ComputeMessageRepresentative() local
62 byte *const h = representative + representativeByteLength - u - digestSize; in ComputeMessageRepresentative()
79 …GetMGF().GenerateAndMask(hash, representative, representativeByteLength - u - digestSize, h, diges… in ComputeMessageRepresentative()
87 …memcpy(representative + representativeByteLength - u, hashIdentifier.first, hashIdentifier.second); in ComputeMessageRepresentative()
88 representative[representativeByteLength - 1] = 0xcc; in ComputeMessageRepresentative()
92 representative[representativeByteLength - 1] = 0xbc; in ComputeMessageRepresentative()
107 const size_t representativeByteLength = BitsToBytes(representativeBitLength); in RecoverMessageFromRepresentative() local
110 const byte *const h = representative + representativeByteLength - u - digestSize; in RecoverMessageFromRepresentative()
119 …valid = (representative[representativeByteLength - 1] == (hashIdentifier.second ? 0xcc : 0xbc)) &&… in RecoverMessageFromRepresentative()
124 …GetMGF().GenerateAndMask(hash, representative, representativeByteLength - u - digestSize, h, diges… in RecoverMessageFromRepresentative()
[all …]
H A Demsa2.cpp31 size_t representativeByteLength = BitsToBytes(representativeBitLength); in ComputeMessageRepresentative() local
34 memset(representative+1, 0xbb, representativeByteLength-digestSize-4); // pad with 0xbb in ComputeMessageRepresentative()
35 byte *afterP2 = representative+representativeByteLength-digestSize-3; in ComputeMessageRepresentative()
38 representative[representativeByteLength-2] = *hashIdentifier.first; in ComputeMessageRepresentative()
39 representative[representativeByteLength-1] = 0xcc; in ComputeMessageRepresentative()
H A Dgfpcrypt.cpp92 const size_t representativeByteLength = BitsToBytes(representativeBitLength); in ComputeMessageRepresentative() local
94 const size_t paddingLength = SaturatingSubtract(representativeByteLength, digestSize); in ComputeMessageRepresentative()
97 hash.TruncatedFinal(representative+paddingLength, STDMIN(representativeByteLength, digestSize)); in ComputeMessageRepresentative()
101 Integer h(representative, representativeByteLength); in ComputeMessageRepresentative()
102 h >>= representativeByteLength*8 - representativeBitLength; in ComputeMessageRepresentative()
103 h.Encode(representative, representativeByteLength); in ComputeMessageRepresentative()
118 const size_t representativeByteLength = BitsToBytes(representativeBitLength); in ComputeMessageRepresentative() local
120 const size_t paddingLength = SaturatingSubtract(representativeByteLength, digestSize); in ComputeMessageRepresentative()
127 Integer h(representative, representativeByteLength); in ComputeMessageRepresentative()
128 h >>= representativeByteLength*8 - representativeBitLength + 1; in ComputeMessageRepresentative()
[all …]
H A Design.h134 size_t representativeByteLength = BitsToBytes(representativeBitLength); in ComputeMessageRepresentative() local
136 mgf.GenerateAndMask(hash, representative, representativeByteLength, digest, digest.size(), false); in ComputeMessageRepresentative()
/dports/sysutils/fusefs-securefs/securefs-0.12.0/external/cryptopp/
H A Dpssr.cpp59 const size_t representativeByteLength = BitsToBytes(representativeBitLength);
62 byte *const h = representative + representativeByteLength - u - digestSize;
79 …GetMGF().GenerateAndMask(hash, representative, representativeByteLength - u - digestSize, h, diges…
87 …memcpy(representative + representativeByteLength - u, hashIdentifier.first, hashIdentifier.second);
88 representative[representativeByteLength - 1] = 0xcc;
92 representative[representativeByteLength - 1] = 0xbc;
107 const size_t representativeByteLength = BitsToBytes(representativeBitLength);
110 const byte *const h = representative + representativeByteLength - u - digestSize;
119 …valid = (representative[representativeByteLength - 1] == (hashIdentifier.second ? 0xcc : 0xbc)) &&…
124 …GetMGF().GenerateAndMask(hash, representative, representativeByteLength - u - digestSize, h, diges…
[all …]
H A Demsa2.cpp31 size_t representativeByteLength = BitsToBytes(representativeBitLength); in ComputeMessageRepresentative() local
34 memset(representative+1, 0xbb, representativeByteLength-digestSize-4); // pad with 0xbb in ComputeMessageRepresentative()
35 byte *afterP2 = representative+representativeByteLength-digestSize-3; in ComputeMessageRepresentative()
38 representative[representativeByteLength-2] = *hashIdentifier.first; in ComputeMessageRepresentative()
39 representative[representativeByteLength-1] = 0xcc; in ComputeMessageRepresentative()
H A Dgfpcrypt.cpp92 const size_t representativeByteLength = BitsToBytes(representativeBitLength); in ComputeMessageRepresentative() local
94 const size_t paddingLength = SaturatingSubtract(representativeByteLength, digestSize); in ComputeMessageRepresentative()
97 hash.TruncatedFinal(representative+paddingLength, STDMIN(representativeByteLength, digestSize)); in ComputeMessageRepresentative()
101 Integer h(representative, representativeByteLength); in ComputeMessageRepresentative()
102 h >>= representativeByteLength*8 - representativeBitLength; in ComputeMessageRepresentative()
103 h.Encode(representative, representativeByteLength); in ComputeMessageRepresentative()
118 const size_t representativeByteLength = BitsToBytes(representativeBitLength); in ComputeMessageRepresentative() local
120 const size_t paddingLength = SaturatingSubtract(representativeByteLength, digestSize); in ComputeMessageRepresentative()
127 Integer h(representative, representativeByteLength); in ComputeMessageRepresentative()
128 h >>= representativeByteLength*8 - representativeBitLength + 1; in ComputeMessageRepresentative()
[all …]
H A Design.h134 size_t representativeByteLength = BitsToBytes(representativeBitLength); in ComputeMessageRepresentative() local
136 mgf.GenerateAndMask(hash, representative, representativeByteLength, digest, digest.size(), false); in ComputeMessageRepresentative()