Skip to content

Commit

Permalink
crypto: cfb,ofb - Remove cfb and ofb
Browse files Browse the repository at this point in the history
    
Remove the unused algorithms CFB/OFB.

Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
herbertx committed Dec 8, 2023
1 parent d4bd210 commit 412ac51
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 385 deletions.
23 changes: 0 additions & 23 deletions crypto/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -661,15 +661,6 @@ config CRYPTO_CBC

This block cipher mode is required for IPSec ESP (XFRM_ESP).

config CRYPTO_CFB
tristate "CFB (Cipher Feedback)"
select CRYPTO_SKCIPHER
select CRYPTO_MANAGER
help
CFB (Cipher Feedback) mode (NIST SP800-38A)

This block cipher mode is required for TPM2 Cryptography.

config CRYPTO_CTR
tristate "CTR (Counter)"
select CRYPTO_SKCIPHER
Expand Down Expand Up @@ -735,20 +726,6 @@ config CRYPTO_LRW

See https://people.csail.mit.edu/rivest/pubs/LRW02.pdf

config CRYPTO_OFB
tristate "OFB (Output Feedback)"
select CRYPTO_SKCIPHER
select CRYPTO_MANAGER
help
OFB (Output Feedback) mode (NIST SP800-38A)

This mode makes a block cipher into a synchronous
stream cipher. It generates keystream blocks, which are then XORed
with the plaintext blocks to get the ciphertext. Flipping a bit in the
ciphertext produces a flipped bit in the plaintext at the same
location. This property allows many error correcting codes to function
normally even when applied before encryption.

config CRYPTO_PCBC
tristate "PCBC (Propagating Cipher Block Chaining)"
select CRYPTO_SKCIPHER
Expand Down
2 changes: 0 additions & 2 deletions crypto/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ obj-$(CONFIG_CRYPTO_BLAKE2B) += blake2b_generic.o
CFLAGS_blake2b_generic.o := -Wframe-larger-than=4096 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105930
obj-$(CONFIG_CRYPTO_ECB) += ecb.o
obj-$(CONFIG_CRYPTO_CBC) += cbc.o
obj-$(CONFIG_CRYPTO_CFB) += cfb.o
obj-$(CONFIG_CRYPTO_PCBC) += pcbc.o
obj-$(CONFIG_CRYPTO_CTS) += cts.o
obj-$(CONFIG_CRYPTO_LRW) += lrw.o
Expand Down Expand Up @@ -186,7 +185,6 @@ obj-$(CONFIG_CRYPTO_USER_API_SKCIPHER) += algif_skcipher.o
obj-$(CONFIG_CRYPTO_USER_API_RNG) += algif_rng.o
obj-$(CONFIG_CRYPTO_USER_API_AEAD) += algif_aead.o
obj-$(CONFIG_CRYPTO_ZSTD) += zstd.o
obj-$(CONFIG_CRYPTO_OFB) += ofb.o
obj-$(CONFIG_CRYPTO_ECC) += ecc.o
obj-$(CONFIG_CRYPTO_ESSIV) += essiv.o
obj-$(CONFIG_CRYPTO_CURVE25519) += curve25519-generic.o
Expand Down
254 changes: 0 additions & 254 deletions crypto/cfb.c

This file was deleted.

Loading

0 comments on commit 412ac51

Please sign in to comment.