HMAC-SHA384/HMAC-SHA512 testng?

Brad Hards bradh at frogmouth.net
Sat Apr 16 03:22:17 CEST 2005


Has anyone tested HMAC with SHA384 and SHA512? 

I've tried the test vectors in 
http://www.ietf.org/internet-drafts/draft-nystrom-smime-hmac-sha-00.txt
and they work for SHA-256, but almost identical code fails for SHA-384 and 
SHA-512.

I contacted Magnus Nystrom, and he asked:
"Did you use blocksize = 128 for SHA-384 and SHA-512? It affects the key 
padding."

I am passing the key data and actual length to gcry_md_setkey(). Is that 
correct operation of HMAC within libgcrypt?

Brad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : /pipermail/attachments/20050416/3c4c0f10/attachment-0001.pgp


More information about the Gcrypt-devel mailing list