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

RE: test vectors for HMAC-SHA-1 - Test Data and Bad News




At 04:27 PM 2/3/97 +0100, Niels Ferguson wrote:
>I have implemented HMAC using SHA-1 as hash function. I have found test
>vectors for HMAC based on MD5, but not for SHA-1. Does anybody have test
>vectors? If not, I would be happy to help create them.
>

At the interoperability event in Dallas, it appears that 
the BSAFE SHA is incompatible with the CYLINK SHA. 

In addition it appears that
BSAFE Diffie-Hellman is incompatible with the CYLINK Diffie-Hellman

We compiled our (FTP Software) implementation of ISAKMP  with either
BSAFE or CYLINK libraries and tested against different vendors and
got compatiblity or incompatibility based on which library we compiled
with.

That being said, I wrote a test program for both SHA and HMAC SHA
and compiled it with CYLINK and then with BSAFE.  The results are 
posted below. 

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
FTP Software
erussell@ftp.com



Follow-Ups: