diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/crypto/internal/aead.h | 3 | ||||
-rw-r--r-- | include/linux/crypto.h | 10 |
2 files changed, 4 insertions, 9 deletions
diff --git a/include/crypto/internal/aead.h b/include/crypto/internal/aead.h index eb4eee7a7804..d838c945575a 100644 --- a/include/crypto/internal/aead.h +++ b/include/crypto/internal/aead.h | |||
@@ -31,6 +31,9 @@ static inline void crypto_set_aead_spawn( | |||
31 | crypto_set_spawn(&spawn->base, inst); | 31 | crypto_set_spawn(&spawn->base, inst); |
32 | } | 32 | } |
33 | 33 | ||
34 | int crypto_grab_aead(struct crypto_aead_spawn *spawn, const char *name, | ||
35 | u32 type, u32 mask); | ||
36 | |||
34 | static inline void crypto_drop_aead(struct crypto_aead_spawn *spawn) | 37 | static inline void crypto_drop_aead(struct crypto_aead_spawn *spawn) |
35 | { | 38 | { |
36 | crypto_drop_spawn(&spawn->base); | 39 | crypto_drop_spawn(&spawn->base); |
diff --git a/include/linux/crypto.h b/include/linux/crypto.h index 639385a9672d..0aba10460201 100644 --- a/include/linux/crypto.h +++ b/include/linux/crypto.h | |||
@@ -723,15 +723,7 @@ static inline struct crypto_aead *__crypto_aead_cast(struct crypto_tfm *tfm) | |||
723 | return (struct crypto_aead *)tfm; | 723 | return (struct crypto_aead *)tfm; |
724 | } | 724 | } |
725 | 725 | ||
726 | static inline struct crypto_aead *crypto_alloc_aead(const char *alg_name, | 726 | struct crypto_aead *crypto_alloc_aead(const char *alg_name, u32 type, u32 mask); |
727 | u32 type, u32 mask) | ||
728 | { | ||
729 | type &= ~CRYPTO_ALG_TYPE_MASK; | ||
730 | type |= CRYPTO_ALG_TYPE_AEAD; | ||
731 | mask |= CRYPTO_ALG_TYPE_MASK; | ||
732 | |||
733 | return __crypto_aead_cast(crypto_alloc_base(alg_name, type, mask)); | ||
734 | } | ||
735 | 727 | ||
736 | static inline struct crypto_tfm *crypto_aead_tfm(struct crypto_aead *tfm) | 728 | static inline struct crypto_tfm *crypto_aead_tfm(struct crypto_aead *tfm) |
737 | { | 729 | { |