[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: HMAC with SHS



>>Lévèque, Xavier (LevequeX@novanet.ca) said on 2/20/97 1:27 PM about RE: HMAC with SHS
	: 
	: I'm currently implementing an HMAC authentication algorithm using
	: SHS as the primitive (based on RFC-2104).  I was wondering if anyone
	: else had done so and
	: if there are test vectors available for SHS (the RFC only provides one
	: test vector for MD5).  Not that I think I could have gotten it wrong,
	: but just to be on the safe side.

Here are Test Vectors for SHA and HMAC SHA with both the CYLINK and BSAFE Libraries.
The different results are accounted for by an LSB/MSB ordering issue.
Latest word is that CYLINK will repair their code to match the BSAFE version.

HMAC KEY =
0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b

HMAC KEY LENGTH = 16
DATA "Hi There"
DATA LENGTH = 8

DIGESTs:

BSAFE HMAC SHA:
67 5B 0B 3A 1B 4D DF 4E 12 48 72 DA 6C 2F 63 2B FE D9 57 E9 

CYLINK HMAC SHA:
BC F6 85 57 4C B8 AA B1 B6 42 CE CB F3 89 A0 79 F6 48 84 F3 


BSAFE SHA:
4B 3A ED 5F 9F E4 01 59 B4 99 53 6F B8 A1 0C DF 3B C6 2B 4C 

CYLINK SHA:
4C 2B C6 3B DF 0C A1 B8 6F 53 99 B4 59 01 E4 9F 5F ED 3A 4B 

Edward Russell
erussell@ftp.com