diff options
author | weidai <weidai11@users.noreply.github.com> | 2003-03-20 03:09:44 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2003-03-20 03:09:44 +0000 |
commit | bd5150762161b426ddadba59f7296b5f147a075c (patch) | |
tree | 98c122b6bde185f16a1bc5c01173f42d7828df77 /rw.cpp | |
parent | e01497632b78697165623a67b16c95b8d0f6c8a7 (diff) | |
download | cryptopp-git-bd5150762161b426ddadba59f7296b5f147a075c.tar.gz |
fix RW/EMSA2 standard conformance bug
Diffstat (limited to 'rw.cpp')
-rw-r--r-- | rw.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -22,7 +22,7 @@ void EMSA2Pad::ComputeMessageRepresentative(RandomNumberGenerator &rng, unsigned int representativeByteLength = BitsToBytes(representativeBitLength); representative[0] = messageEmpty ? 0x4b : 0x6b; - memset(representative+1, 0xbb, representativeByteLength-digestSize-4); // padd with 0xbb + memset(representative+1, 0xbb, representativeByteLength-digestSize-4); // pad with 0xbb byte *afterP2 = representative+representativeByteLength-digestSize-3; afterP2[0] = 0xba; hash.Final(afterP2+1); |