aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crypto/algif_aead.c3
-rw-r--r--include/linux/crypto.h6
2 files changed, 8 insertions, 1 deletions
diff --git a/crypto/algif_aead.c b/crypto/algif_aead.c
index 38a6cab7aeca..e0408a480d2f 100644
--- a/crypto/algif_aead.c
+++ b/crypto/algif_aead.c
@@ -514,7 +514,8 @@ static struct proto_ops algif_aead_ops = {
514 514
515static void *aead_bind(const char *name, u32 type, u32 mask) 515static void *aead_bind(const char *name, u32 type, u32 mask)
516{ 516{
517 return crypto_alloc_aead(name, type, mask); 517 return crypto_alloc_aead(name, type | CRYPTO_ALG_AEAD_NEW,
518 mask | CRYPTO_ALG_AEAD_NEW);
518} 519}
519 520
520static void aead_release(void *private) 521static void aead_release(void *private)
diff --git a/include/linux/crypto.h b/include/linux/crypto.h
index 964e5735a6a9..81ef938b0a8e 100644
--- a/include/linux/crypto.h
+++ b/include/linux/crypto.h
@@ -102,6 +102,12 @@
102#define CRYPTO_ALG_INTERNAL 0x00002000 102#define CRYPTO_ALG_INTERNAL 0x00002000
103 103
104/* 104/*
105 * Temporary flag used to prevent legacy AEAD implementations from
106 * being used by user-space.
107 */
108#define CRYPTO_ALG_AEAD_NEW 0x00004000
109
110/*
105 * Transform masks and values (for crt_flags). 111 * Transform masks and values (for crt_flags).
106 */ 112 */
107#define CRYPTO_TFM_REQ_MASK 0x000fff00 113#define CRYPTO_TFM_REQ_MASK 0x000fff00