Skip to content
Commit c5a2f74d authored by Gaurav Jain's avatar Gaurav Jain Committed by Herbert Xu
Browse files

crypto: caam - fix asynchronous hash

ahash_alg->setkey is updated to ahash_nosetkey in ahash.c
so checking setkey() function to determine hmac algorithm is not valid.

to fix this added is_hmac variable in structure caam_hash_alg to determine
whether the algorithm is hmac or not.

Fixes: 2f1f34c1

 ("crypto: ahash - optimize performance when wrapping shash")
Signed-off-by: default avatarGaurav Jain <gaurav.jain@nxp.com>
Reviewed-by: default avatarEric Biggers <ebiggers@google.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent e1d54d15
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment