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
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