Skip to content

Commit 1d373d4

Browse files
WOnder93herbertx
authored andcommitted
crypto: x86 - Add optimized AEGIS implementations
This patch adds optimized implementations of AEGIS-128, AEGIS-128L, and AEGIS-256, utilizing the AES-NI and SSE2 x86 extensions. Signed-off-by: Ondrej Mosnacek <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent b87dc20 commit 1d373d4

File tree

8 files changed

+3529
-0
lines changed

8 files changed

+3529
-0
lines changed

arch/x86/crypto/Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ obj-$(CONFIG_CRYPTO_SHA512_SSSE3) += sha512-ssse3.o
3838
obj-$(CONFIG_CRYPTO_CRCT10DIF_PCLMUL) += crct10dif-pclmul.o
3939
obj-$(CONFIG_CRYPTO_POLY1305_X86_64) += poly1305-x86_64.o
4040

41+
obj-$(CONFIG_CRYPTO_AEGIS128_AESNI_SSE2) += aegis128-aesni.o
42+
obj-$(CONFIG_CRYPTO_AEGIS128L_AESNI_SSE2) += aegis128l-aesni.o
43+
obj-$(CONFIG_CRYPTO_AEGIS256_AESNI_SSE2) += aegis256-aesni.o
44+
4145
# These modules require assembler to support AVX.
4246
ifeq ($(avx_supported),yes)
4347
obj-$(CONFIG_CRYPTO_CAMELLIA_AESNI_AVX_X86_64) += \
@@ -72,6 +76,10 @@ salsa20-x86_64-y := salsa20-x86_64-asm_64.o salsa20_glue.o
7276
chacha20-x86_64-y := chacha20-ssse3-x86_64.o chacha20_glue.o
7377
serpent-sse2-x86_64-y := serpent-sse2-x86_64-asm_64.o serpent_sse2_glue.o
7478

79+
aegis128-aesni-y := aegis128-aesni-asm.o aegis128-aesni-glue.o
80+
aegis128l-aesni-y := aegis128l-aesni-asm.o aegis128l-aesni-glue.o
81+
aegis256-aesni-y := aegis256-aesni-asm.o aegis256-aesni-glue.o
82+
7583
ifeq ($(avx_supported),yes)
7684
camellia-aesni-avx-x86_64-y := camellia-aesni-avx-asm_64.o \
7785
camellia_aesni_avx_glue.o

0 commit comments

Comments
 (0)