On Wed, Dec 11, 2002 at 02:26:27PM -0800, John Yang wrote:
> I tried to do
>
> HMAC<MD2> hmacMD2(keyHere);
>
> get error C2039: 'BLOCKSIZE' : is not a member of 'MD2'
It's been fixed in version 5.0, but not in 4.2. I'll check the fix into
the 4.2 branch as well. Here's the fix in the mean time:
Index: md2.h
===================================================================
RCS file: /cvsroot/cryptopp/src/md2.h,v
retrieving revision 1.4
diff -c -r1.4 md2.h
*** md2.h 5 Apr 2001 20:35:33 -0000 1.4
--- md2.h 12 Dec 2002 01:27:47 -0000
***************
*** 16,22 ****
void TruncatedFinal(byte *hash, unsigned int size);
unsigned int DigestSize() const {return DIGESTSIZE;}
! enum {DIGESTSIZE = 16};
private:
void Transform();
--- 16,22 ----
void TruncatedFinal(byte *hash, unsigned int size);
unsigned int DigestSize() const {return DIGESTSIZE;}
! enum {DIGESTSIZE = 16, BLOCKSIZE = 16};
private:
void Transform();