crypto: skcipher - Make use of internal state
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 28 Nov 2023 06:33:19 +0000 (14:33 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 8 Dec 2023 03:59:46 +0000 (11:59 +0800)
commit662ea18d089ba6fa02859fbd64f2aa78d88c6648
treec2e3651b30e2a421fb1be747352ec30771551787
parent0ae4dcc1ebf63118364d540b84c70352e8b2b2a4
crypto: skcipher - Make use of internal state

This patch adds code to the skcipher/lskcipher API to make use
of the internal state if present.  In particular, the skcipher
lskcipher wrapper will allocate a buffer for the IV/state and
feed that to the underlying lskcipher algorithm.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/lskcipher.c
crypto/skcipher.c
include/crypto/skcipher.h