diff options
author | Eric Biggers <ebiggers@google.com> | 2016-10-28 09:51:13 -0700 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-11-01 08:37:16 +0800 |
commit | 93333f1378165d078517a8328076f7b90f1fa8b7 (patch) | |
tree | a13dcc082ad4370ebded8ecbc2e587840058465c /crypto/gcm.c | |
parent | edfc962d7899fad98a9e098a6c2f3427f425a3e2 (diff) | |
download | linux-crypto-93333f1378165d078517a8328076f7b90f1fa8b7.tar.gz linux-crypto-93333f1378165d078517a8328076f7b90f1fa8b7.zip |
crypto: skcipher - Get rid of crypto_grab_skcipher2()
Since commit 142ab044a5c4 ("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/gcm.c')
-rw-r--r-- | crypto/gcm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/gcm.c b/crypto/gcm.c index 39c261d8..5f11b80a 100644 --- a/crypto/gcm.c +++ b/crypto/gcm.c @@ -663,9 +663,9 @@ static int crypto_gcm_create_common(struct crypto_template *tmpl, goto err_drop_ghash; crypto_set_skcipher_spawn(&ctx->ctr, aead_crypto_instance(inst)); - err = crypto_grab_skcipher2(&ctx->ctr, ctr_name, 0, - crypto_requires_sync(algt->type, - algt->mask)); + err = crypto_grab_skcipher(&ctx->ctr, ctr_name, 0, + crypto_requires_sync(algt->type, + algt->mask)); if (err) goto err_drop_ghash; |