crypto: hmac - Prehash ipad/opad
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 Jul 2009 07:18:41 +0000 (15:18 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 Jul 2009 07:18:41 +0000 (15:18 +0800)
commit0b767b4df360bd442434d9d40b8a495e64202254
tree53f1ab029bd6cf9561cca1da3a2fd315095c11d8
parent7b4ffcf953f091a815df081911c5e75c8a38418d
crypto: hmac - Prehash ipad/opad

This patch uses crypto_shash_export/crypto_shash_import to prehash
ipad/opad to speed up hmac.  This is partly based on a similar patch
by Steffen Klassert.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/hmac.c