]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: crypto_null - Drop unused cipher_null crypto_alg
authorArd Biesheuvel <ardb@kernel.org>
Mon, 20 Apr 2026 09:41:20 +0000 (11:41 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 7 May 2026 08:10:01 +0000 (16:10 +0800)
commitcba5aebae1094a52eb951a66e1edd0a670d6aacb
treede26ce4306d494818f4ebde00813ccf9ad50a6ed
parent58d0b2b90796d603b01afb8eeaeb14c58131ad57
crypto: crypto_null - Drop unused cipher_null crypto_alg

The cipher_null crypto_alg cipher is never used in a meaningful way,
given that it is always wrapped in ecb(), which has its own dedicated
implementation. IOW, the cipher_null crypto_alg should never be used to
implement the ecb(cipher_null) skcipher, and using it for other things
is bogus.

However, it is accessible from user space, and due to the nature of the
AF_ALG interface, it may be wrapped in arbitrary ways, exposing issues
in template code that wasn't written with block ciphers with a block
size of '1' in mind.

So drop this code.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/crypto_null.c