summaryrefslogtreecommitdiffstats
path: root/crypto/ccm.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2020-01-02 19:59:05 -0800
committerHerbert Xu <herbert@gondor.apana.org.au>2020-01-09 11:30:57 +0800
commitd5ed3b65f7012a6592809f7f928f3e3660df8fd9 (patch)
treed1fb65b0fe7aaf46fdb7732586ca54090c5ab581 /crypto/ccm.c
parent1e212a6a562f781f00cba6c7ece93817857e0f32 (diff)
downloadlinux-stable-d5ed3b65f7012a6592809f7f928f3e3660df8fd9.tar.gz
linux-stable-d5ed3b65f7012a6592809f7f928f3e3660df8fd9.tar.bz2
linux-stable-d5ed3b65f7012a6592809f7f928f3e3660df8fd9.zip
crypto: cipher - make crypto_spawn_cipher() take a crypto_cipher_spawn
Now that all users of single-block cipher spawns have been converted to use 'struct crypto_cipher_spawn' rather than the less specifically typed 'struct crypto_spawn', make crypto_spawn_cipher() take a pointer to a 'struct crypto_cipher_spawn' rather than a 'struct crypto_spawn'. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/ccm.c')
-rw-r--r--crypto/ccm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ccm.c b/crypto/ccm.c
index 411c3973b95c..f4abaefd9df5 100644
--- a/crypto/ccm.c
+++ b/crypto/ccm.c
@@ -866,7 +866,7 @@ static int cbcmac_init_tfm(struct crypto_tfm *tfm)
{
struct crypto_cipher *cipher;
struct crypto_instance *inst = (void *)tfm->__crt_alg;
- struct crypto_spawn *spawn = crypto_instance_ctx(inst);
+ struct crypto_cipher_spawn *spawn = crypto_instance_ctx(inst);
struct cbcmac_tfm_ctx *ctx = crypto_tfm_ctx(tfm);
cipher = crypto_spawn_cipher(spawn);