Skip to content

Commit 3e90950

Browse files
committed
crypto: algif_aead - Temporarily disable all AEAD algorithms
As the AEAD conversion is still ongoing, we do not yet wish to export legacy AEAD implementations to user-space, as their calling convention will change. This patch actually disables all AEAD algorithms because some of them (e.g., cryptd) will need to be modified to propagate this flag. Subsequent patches will reenable them on an individual basis. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 15539de commit 3e90950

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

crypto/algif_aead.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,8 @@ static struct proto_ops algif_aead_ops = {
514514

515515
static void *aead_bind(const char *name, u32 type, u32 mask)
516516
{
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);
518519
}
519520

520521
static void aead_release(void *private)

include/linux/crypto.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@
101101
*/
102102
#define CRYPTO_ALG_INTERNAL 0x00002000
103103

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+
104110
/*
105111
* Transform masks and values (for crt_flags).
106112
*/

0 commit comments

Comments
 (0)