vppinfra: AES-CBC and AES-GCM refactor and optimizations 05/38505/19
authorDamjan Marion <damarion@cisco.com>
Wed, 15 Mar 2023 11:42:06 +0000 (11:42 +0000)
committerOle Tr�an <otroan@employees.org>
Thu, 23 Mar 2023 12:04:46 +0000 (12:04 +0000)
commitb47376f0b404d2ba5526fba52b171d79b0f352f8
tree5ffcdb47d48f4db0b87483fe6f99a7249831118c
parent5527a78ed96043d2c26e3271066c50b44dd7fc0b
vppinfra: AES-CBC and AES-GCM refactor and optimizations

- crypto code moved to vppinfra for better testing and reuse
- added 256-bit VAES support (Intel Client CPUs)
- added AES_GMAC functions

Change-Id: I960c8e14ca0a0126703e8f1589d86f32e2a98361
Type: improvement
Signed-off-by: Damjan Marion <damarion@cisco.com>
15 files changed:
src/plugins/crypto_native/aes_cbc.c
src/plugins/crypto_native/aes_gcm.c
src/vppinfra/CMakeLists.txt
src/vppinfra/crypto/aes.h [moved from src/plugins/crypto_native/aes.h with 93% similarity]
src/vppinfra/crypto/aes_cbc.h [new file with mode: 0644]
src/vppinfra/crypto/aes_gcm.h [new file with mode: 0644]
src/vppinfra/crypto/ghash.h [moved from src/plugins/crypto_native/ghash.h with 73% similarity]
src/vppinfra/perfmon/bundle_default.c
src/vppinfra/sha2.h [deleted file]
src/vppinfra/test/aes_cbc.c [new file with mode: 0644]
src/vppinfra/test/aes_gcm.c [new file with mode: 0644]
src/vppinfra/vector_avx2.h
src/vppinfra/vector_avx512.h
src/vppinfra/vector_neon.h
src/vppinfra/vector_sse42.h