crypto: skcipher - Get rid of crypto_spawn_skcipher2()
PATCH 1/1 crypto: skcipher - Get rid of crypto_spawn_skcipher2()
Since commit 3a01d0ee2b99 ("crypto: skcipher - Remove top-level givcipher interface"), crypto_spawn_skcipher2() and crypto_spawn_skcipher() are equivalent. So switch callers of crypto_spawn_skcipher2() to crypto_spawn_skcipher() and remove it.
Signed-off-by Eric Biggers <[email protected]>
--- crypto/authenc.c | 2 +- crypto/authencesn.c | 2 +- crypto/ccm.c | 2 +- crypto/chacha20poly1305.c | 2 +- crypto/ctr.c | 2 +- crypto/cts.c | 2 +- crypto/gcm.c | 2 +- include/crypto/internal/skcipher.h | 6 ------ 8 files changed, 7 insertions(+), 13 deletions(-)
crypto/authenc.c +1 -1
@@ -324,7 +324,7 @@ static int crypto_authenc_init_tfm(struct crypto_aead *tfm)if (IS_ERR (auth))return PTR_ERR (auth); - enc =crypto_spawn_skcipher2 (&ictx->enc); + enc =crypto_spawn_skcipher (&ictx->enc); err =PTR_ERR (enc);if (IS_ERR (enc)) goto err_free_ahash;
crypto/authencesn.c +1 -1
@@ -342,7 +342,7 @@ static int crypto_authenc_esn_init_tfm(struct crypto_aead *tfm)if (IS_ERR (auth))return PTR_ERR (auth); - enc =crypto_spawn_skcipher2 (&ictx->enc); + enc =crypto_spawn_skcipher (&ictx->enc); err =PTR_ERR (enc);if (IS_ERR (enc)) goto err_free_ahash;
crypto/ccm.c +1 -1
@@ -462,7 +462,7 @@ static int crypto_ccm_init_tfm(struct crypto_aead *tfm)if (IS_ERR (cipher))return PTR_ERR (cipher); - ctr =crypto_spawn_skcipher2 (&ictx->ctr); + ctr =crypto_spawn_skcipher (&ictx->ctr); err =PTR_ERR (ctr);if (IS_ERR (ctr)) goto err_free_cipher;
crypto/chacha20poly1305.c +1 -1
@@ -532,7 +532,7 @@ static int chachapoly_init(struct crypto_aead *tfm)if (IS_ERR (poly))return PTR_ERR (poly); - chacha =crypto_spawn_skcipher2 (&ictx->chacha); + chacha =crypto_spawn_skcipher (&ictx->chacha);if (IS_ERR (chacha)) {crypto_free_ahash (poly);return PTR_ERR (chacha);
crypto/ctr.c +1 -1
@@ -312,7 +312,7 @@ static int crypto_rfc3686_init_tfm(struct crypto_skcipher *tfm)unsigned long align;unsigned int reqsize; - cipher =crypto_spawn_skcipher2 (spawn); + cipher =crypto_spawn_skcipher (spawn);if (IS_ERR (cipher))return PTR_ERR (cipher);
crypto/cts.c +1 -1
@@ -290,7 +290,7 @@ static int crypto_cts_init_tfm(struct crypto_skcipher *tfm)unsigned bsize;unsigned align; - cipher =crypto_spawn_skcipher2 (spawn); + cipher =crypto_spawn_skcipher (spawn);if (IS_ERR (cipher))return PTR_ERR (cipher);
crypto/gcm.c +1 -1
@@ -575,7 +575,7 @@ static int crypto_gcm_init_tfm(struct crypto_aead *tfm)if (IS_ERR (ghash))return PTR_ERR (ghash); - ctr =crypto_spawn_skcipher2 (&ictx->ctr); + ctr =crypto_spawn_skcipher (&ictx->ctr); err =PTR_ERR (ctr);if (IS_ERR (ctr)) goto err_free_hash;
include/crypto/internal/skcipher.h +0 -6
@@ -91,12 +91,6 @@ static inline struct crypto_skcipher *crypto_spawn_skcipher(return crypto_spawn_tfm2 (&spawn->base); } -static inline struct crypto_skcipher *crypto_spawn_skcipher2 ( -struct crypto_skcipher_spawn *spawn) -{ -return crypto_spawn_skcipher (spawn); -} -static inline void crypto_skcipher_set_reqsize (struct crypto_skcipher *skcipher,unsigned int reqsize) {
Signature · 1 line
2.8.0.rc3.226.g39d4020
Herbert Xu
maintainerQuoted 6 lines · Eric Biggers
Since commit
3a01d0ee2b99("crypto: skcipher - Remove top-level givcipher interface"),crypto_spawn_skcipher2()andcrypto_spawn_skcipher()are equivalent. So switch callers ofcrypto_spawn_skcipher2()tocrypto_spawn_skcipher()and remove it.Signed-off-by Eric Biggers <[email protected]>
Patch applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt