]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: octeontx2 - Fix authenc setkey
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 17 Aug 2024 04:36:19 +0000 (12:36 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 24 Aug 2024 13:39:15 +0000 (21:39 +0800)
commit7ccb750dcac8abbfc7743aab0db6a72c1c3703c7
tree339e83ba986dc94ec6bb5715a2b08048eddeec96
parent311eea7e37c4c0b44b557d0c100860a03b4eab65
crypto: octeontx2 - 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/octeontx2/otx2_cptvf_algs.c