diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2016-07-12 01:17:50 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-07-18 05:35:46 -0400 |
commit | 3a01d0ee2b991c8c267620e63a4ab47cd8c30cc4 (patch) | |
tree | 5c8d3aa7fb5fbaa3ae9d80883e9057c0395b7def /crypto/skcipher.c | |
parent | 6cf80a296575723aed6ce6c695581540202bfc6b (diff) |
crypto: skcipher - Remove top-level givcipher interface
This patch removes the old crypto_grab_skcipher helper and replaces
it with crypto_grab_skcipher2.
As this is the final entry point into givcipher this patch also
removes all traces of the top-level givcipher interface, including
all implicit IV generators such as chainiv.
The bottom-level givcipher interface remains until the drivers
using it are converted.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/skcipher.c')
-rw-r--r-- | crypto/skcipher.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/skcipher.c b/crypto/skcipher.c index d248008e7f7b..f7d0018dcaee 100644 --- a/crypto/skcipher.c +++ b/crypto/skcipher.c | |||
@@ -325,13 +325,13 @@ static const struct crypto_type crypto_skcipher_type2 = { | |||
325 | .tfmsize = offsetof(struct crypto_skcipher, base), | 325 | .tfmsize = offsetof(struct crypto_skcipher, base), |
326 | }; | 326 | }; |
327 | 327 | ||
328 | int crypto_grab_skcipher2(struct crypto_skcipher_spawn *spawn, | 328 | int crypto_grab_skcipher(struct crypto_skcipher_spawn *spawn, |
329 | const char *name, u32 type, u32 mask) | 329 | const char *name, u32 type, u32 mask) |
330 | { | 330 | { |
331 | spawn->base.frontend = &crypto_skcipher_type2; | 331 | spawn->base.frontend = &crypto_skcipher_type2; |
332 | return crypto_grab_spawn(&spawn->base, name, type, mask); | 332 | return crypto_grab_spawn(&spawn->base, name, type, mask); |
333 | } | 333 | } |
334 | EXPORT_SYMBOL_GPL(crypto_grab_skcipher2); | 334 | EXPORT_SYMBOL_GPL(crypto_grab_skcipher); |
335 | 335 | ||
336 | struct crypto_skcipher *crypto_alloc_skcipher(const char *alg_name, | 336 | struct crypto_skcipher *crypto_alloc_skcipher(const char *alg_name, |
337 | u32 type, u32 mask) | 337 | u32 type, u32 mask) |