crypto: hmac - Use init_tfm/exit_tfm interface
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 8 Dec 2019 05:42:53 +0000 (13:42 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 11 Dec 2019 08:48:39 +0000 (16:48 +0800)
commitd9e1670b8005999998b557c0e301bb68192bb1c8
tree624e359ec0943511a5167c5dfa54cc79f1caa745
parent96895693940710db24e42c4e2a248d8f7bd7ab4b
crypto: hmac - Use init_tfm/exit_tfm interface

This patch switches hmac over to the new init_tfm/exit_tfm interface
as opposed to cra_init/cra_exit.  This way the shash API can make
sure that descsize does not exceed the maximum.

This patch also adds the API helper shash_alg_instance.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Reviewed-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/hmac.c
include/crypto/internal/hash.h