Skip to content

Commit 53d9218

Browse files
author
Eric Biggers
committed
fscrypt: Drop FORBID_WEAK_KEYS flag for AES-ECB
This flag only has an effect for DES, 3DES, and XTS mode. It does nothing for AES-ECB, as there is no concept of weak keys for AES. Link: https://lore.kernel.org/r/20250710060754.637098-3-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@kernel.org>
1 parent 71ffd1d commit 53d9218

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

fs/crypto/keysetup_v1.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ static int derive_key_aes(const u8 *master_key,
5959
tfm = NULL;
6060
goto out;
6161
}
62-
crypto_skcipher_set_flags(tfm, CRYPTO_TFM_REQ_FORBID_WEAK_KEYS);
6362
req = skcipher_request_alloc(tfm, GFP_KERNEL);
6463
if (!req) {
6564
res = -ENOMEM;

0 commit comments

Comments
 (0)