Message ID | 20201231172337.23073-1-ardb@kernel.org |
---|---|
Headers | show |
Series | crypto: x86 - remove glue helper module | expand |
On Thu, Dec 31, 2020 at 06:23:24PM +0100, Ard Biesheuvel wrote: > CAST5 in CTR mode is never used by the kernel directly, and is highly > unlikely to be relied upon by dm-crypt or algif_skcipher. So let's drop > the accelerated CTR mode implementation, and instead, rely on the CTR > template and the bare cipher. > > Signed-off-by: Ard Biesheuvel <ardb@kernel.org> > --- > arch/x86/crypto/cast5_avx_glue.c | 103 -------------------- > crypto/Kconfig | 1 + > 2 files changed, 1 insertion(+), 103 deletions(-) Acked-by: Eric Biggers <ebiggers@google.com>
On Thu, Dec 31, 2020 at 06:23:28PM +0100, Ard Biesheuvel wrote: > DES or Triple DES in counter mode is never used in the kernel, so there > is no point in keeping an accelerated implementation around. > > Signed-off-by: Ard Biesheuvel <ardb@kernel.org> > --- > arch/x86/crypto/des3_ede_glue.c | 104 -------------------- > crypto/Kconfig | 1 + > 2 files changed, 1 insertion(+), 104 deletions(-) Acked-by: Eric Biggers <ebiggers@google.com>
On Thu, Dec 31, 2020 at 06:23:33PM +0100, Ard Biesheuvel wrote: > Replace the glue helper dependency with implementations of ECB and CBC > based on the new CPP macros, which avoid the need for indirect calls. > > Signed-off-by: Ard Biesheuvel <ardb@kernel.org> > --- > arch/x86/crypto/cast5_avx_glue.c | 184 ++------------------ > 1 file changed, 17 insertions(+), 167 deletions(-) Acked-by: Eric Biggers <ebiggers@google.com>
On Thu, Dec 31, 2020 at 06:23:37PM +0100, Ard Biesheuvel wrote: > The Camellia, Serpent and Twofish related header files only contain > declarations that are shared between different implementations of the > respective algorithms residing under arch/x86/crypto, and none of their > contents should be used elsewhere. So move the header files into the > same location, and use local #includes instead. > > Signed-off-by: Ard Biesheuvel <ardb@kernel.org> > --- > arch/x86/{include/asm => }/crypto/camellia.h | 0 > arch/x86/crypto/camellia_aesni_avx2_glue.c | 2 +- > arch/x86/crypto/camellia_aesni_avx_glue.c | 2 +- > arch/x86/crypto/camellia_glue.c | 2 +- > arch/x86/{include/asm => }/crypto/serpent-avx.h | 0 > arch/x86/{include/asm => }/crypto/serpent-sse2.h | 0 > arch/x86/crypto/serpent_avx2_glue.c | 2 +- > arch/x86/crypto/serpent_avx_glue.c | 2 +- > arch/x86/crypto/serpent_sse2_glue.c | 2 +- > arch/x86/{include/asm => }/crypto/twofish.h | 0 > arch/x86/crypto/twofish_avx_glue.c | 2 +- > arch/x86/crypto/twofish_glue_3way.c | 2 +- > 12 files changed, 8 insertions(+), 8 deletions(-) Acked-by: Eric Biggers <ebiggers@google.com>