summaryrefslogtreecommitdiffstats
path: root/crypto/cts.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2016-10-28 09:51:13 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2016-11-01 08:37:16 +0800
commita35528eca0977482b240c29cad5e1cf10e03a6a9 (patch)
treeb1d970428b643dd9df59bc736e6efd55b7ffb9b6 /crypto/cts.c
parenta1fa98d8116fb4f8a5df91fb2267ce8d192f6875 (diff)
downloadlinux-stable-a35528eca0977482b240c29cad5e1cf10e03a6a9.tar.gz
linux-stable-a35528eca0977482b240c29cad5e1cf10e03a6a9.tar.bz2
linux-stable-a35528eca0977482b240c29cad5e1cf10e03a6a9.zip
crypto: skcipher - Get rid of crypto_grab_skcipher2()
Since commit 3a01d0ee2b99 ("crypto: skcipher - Remove top-level givcipher interface"), crypto_grab_skcipher2() and crypto_grab_skcipher() are equivalent. So switch callers of crypto_grab_skcipher2() to crypto_grab_skcipher() and remove it. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/cts.c')
-rw-r--r--crypto/cts.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/cts.c b/crypto/cts.c
index 51976187b2bf..8883b622d454 100644
--- a/crypto/cts.c
+++ b/crypto/cts.c
@@ -348,9 +348,9 @@ static int crypto_cts_create(struct crypto_template *tmpl, struct rtattr **tb)
spawn = skcipher_instance_ctx(inst);
crypto_set_skcipher_spawn(spawn, skcipher_crypto_instance(inst));
- err = crypto_grab_skcipher2(spawn, cipher_name, 0,
- crypto_requires_sync(algt->type,
- algt->mask));
+ err = crypto_grab_skcipher(spawn, cipher_name, 0,
+ crypto_requires_sync(algt->type,
+ algt->mask));
if (err)
goto err_free_inst;