]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: octeontx - Fix authenc setkey
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 17 Aug 2024 04:13:23 +0000 (12:13 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 24 Aug 2024 13:39:15 +0000 (21:39 +0800)
commit311eea7e37c4c0b44b557d0c100860a03b4eab65
treec26cb01c066c554e1e7c974c9f319cda8c44edf9
parent87a3fcf5fec5fb59ec8f23d12a56bcf2b2ee6db7
crypto: octeontx - Fix authenc setkey

Use the generic crypto_authenc_extractkeys helper instead of custom
parsing code that is slightly broken.  Also fix a number of memory
leaks by moving memory allocation from setkey to init_tfm (setkey
can be called multiple times over the life of a tfm).

Finally accept all hash key lengths by running the digest over
extra-long keys.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/marvell/octeontx/otx_cptvf_algs.c