From 9f148107dd8c49b13839c8e3d0c26444eebeeef9 Mon Sep 17 00:00:00 2001 From: weidai Date: Thu, 20 Mar 2003 03:09:44 +0000 Subject: fix RW/EMSA2 standard conformance bug git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@40 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- rw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rw.cpp') diff --git a/rw.cpp b/rw.cpp index ab3fb70..16534c8 100644 --- a/rw.cpp +++ b/rw.cpp @@ -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); -- cgit v1.2.1