crypto: caam/qi2 - create ahash shared descriptors only once
authorHoria Geantă <horia.geanta@nxp.com>
Wed, 22 Jul 2020 12:14:54 +0000 (15:14 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 31 Jul 2020 08:25:27 +0000 (18:25 +1000)
commitb7ec41da3b8314d262aef7be09b5684c5f9dd43a
tree8476b44afa431d81c88a78e2c114287daee7a690
parentd9f2d010302e858cada492c99da301858916ff28
crypto: caam/qi2 - create ahash shared descriptors only once

For keyed hash algorithms, shared descriptors are currently generated
twice:
-at tfm initialization time, in cra_init() callback
-in setkey() callback

Since it's mandatory to call setkey() for keyed algorithms, drop the
generation in cra_init().

This is similar to the change in caamhash (caam/jr top-level library)
commit 9a2537d0ebc9 ("crypto: caam - create ahash shared descriptors only once")

Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamalg_qi2.c