Skip to content

Commit 1c13763

Browse files
Eric Biggerssmfrench
authored andcommitted
ksmbd: Remove unnecessary selection of CRYPTO_ECB
Since the SMB server never uses any ecb(...) algorithm from the crypto_skcipher API, selecting CRYPTO_ECB is unnecessary. Remove it along with the unused CRYPTO_BLK_* constants. Signed-off-by: Eric Biggers <ebiggers@kernel.org> Acked-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 49110a8 commit 1c13763

3 files changed

Lines changed: 0 additions & 7 deletions

File tree

fs/smb/server/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ config SMB_SERVER
77
select NLS_UTF8
88
select NLS_UCS2_UTILS
99
select CRYPTO
10-
select CRYPTO_ECB
1110
select CRYPTO_LIB_ARC4
1211
select CRYPTO_LIB_DES
1312
select CRYPTO_LIB_MD5

fs/smb/server/crypto_ctx.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ enum {
2020
CRYPTO_AEAD_MAX,
2121
};
2222

23-
enum {
24-
CRYPTO_BLK_ECBDES = 32,
25-
CRYPTO_BLK_MAX,
26-
};
27-
2823
struct ksmbd_crypto_ctx {
2924
struct list_head list;
3025

fs/smb/server/server.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,6 @@ static void __exit ksmbd_server_exit(void)
629629
MODULE_AUTHOR("Namjae Jeon <linkinjeon@kernel.org>");
630630
MODULE_DESCRIPTION("Linux kernel CIFS/SMB SERVER");
631631
MODULE_LICENSE("GPL");
632-
MODULE_SOFTDEP("pre: ecb");
633632
MODULE_SOFTDEP("pre: nls");
634633
MODULE_SOFTDEP("pre: aes");
635634
MODULE_SOFTDEP("pre: cmac");

0 commit comments

Comments
 (0)