Add basic aria and camellia ciphers modes to default provider
authorShane Lontis <shane.lontis@oracle.com>
Thu, 22 Aug 2019 01:42:54 +0000 (11:42 +1000)
committerShane Lontis <shane.lontis@oracle.com>
Thu, 22 Aug 2019 01:42:54 +0000 (11:42 +1000)
commite1178600cc5d40b1e21c4a01d224afd2d8c7498a
tree9601f94492fbab46a72f96e0982025d7ec7ed236
parent85d09e8848012d0dfdacf827d9d56730fa5daf16
Add basic aria and camellia ciphers modes to default provider

The aes code has been refactored into generic and algorithn specific parts,
so that most of the code can be shared.
The cipher related files have been broken up into smaller parts.
Add chunked variant of mode ciphers - aria uses this (many other ciphers will use this new code instead of the
generic code used by aes).

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9451)
48 files changed:
crypto/evp/e_aes.c
crypto/evp/e_camellia.c
crypto/evp/evp_enc.c
crypto/include/internal/ciphermode_platform.h [moved from crypto/include/internal/aes_platform.h with 91% similarity]
providers/common/ciphers/aes.c [deleted file]
providers/common/ciphers/aes_basic.c [deleted file]
providers/common/ciphers/block.c
providers/common/ciphers/build.info
providers/common/ciphers/cipher_aes.c [new file with mode: 0644]
providers/common/ciphers/cipher_aes.h [new file with mode: 0644]
providers/common/ciphers/cipher_aes_ccm.c [new file with mode: 0644]
providers/common/ciphers/cipher_aes_ccm_hw_aesni.inc [new file with mode: 0644]
providers/common/ciphers/cipher_aes_ccm_hw_s390x.inc [moved from providers/common/ciphers/aes_ccm_s390x.c with 97% similarity]
providers/common/ciphers/cipher_aes_ccm_hw_t4.inc [new file with mode: 0644]
providers/common/ciphers/cipher_aes_gcm.c [new file with mode: 0644]
providers/common/ciphers/cipher_aes_gcm_hw_aesni.inc [new file with mode: 0644]
providers/common/ciphers/cipher_aes_gcm_hw_s390x.inc [moved from providers/common/ciphers/gcm_s390x.c with 97% similarity]
providers/common/ciphers/cipher_aes_gcm_hw_t4.inc [new file with mode: 0644]
providers/common/ciphers/cipher_aes_hw.c [new file with mode: 0644]
providers/common/ciphers/cipher_aes_hw_aesni.inc [new file with mode: 0644]
providers/common/ciphers/cipher_aes_hw_s390x.inc [new file with mode: 0644]
providers/common/ciphers/cipher_aes_hw_t4.inc [new file with mode: 0644]
providers/common/ciphers/cipher_aria.c [new file with mode: 0644]
providers/common/ciphers/cipher_aria.h [new file with mode: 0644]
providers/common/ciphers/cipher_aria_ccm.c [new file with mode: 0644]
providers/common/ciphers/cipher_aria_ccm_hw.inc [new file with mode: 0644]
providers/common/ciphers/cipher_aria_gcm.c [new file with mode: 0644]
providers/common/ciphers/cipher_aria_gcm_hw.inc [new file with mode: 0644]
providers/common/ciphers/cipher_aria_hw.c [new file with mode: 0644]
providers/common/ciphers/cipher_camellia.c [new file with mode: 0644]
providers/common/ciphers/cipher_camellia.h [new file with mode: 0644]
providers/common/ciphers/cipher_camellia_hw.c [new file with mode: 0644]
providers/common/ciphers/cipher_camellia_hw_t4.inc [new file with mode: 0644]
providers/common/ciphers/cipher_ccm.c [moved from providers/common/ciphers/ccm.c with 77% similarity]
providers/common/ciphers/cipher_ccm.h [moved from providers/common/ciphers/ciphers_ccm.h with 92% similarity]
providers/common/ciphers/cipher_ccm_hw.c [moved from providers/common/ciphers/ccm_hw.c with 59% similarity]
providers/common/ciphers/cipher_common.c [new file with mode: 0644]
providers/common/ciphers/cipher_common_hw.c [new file with mode: 0644]
providers/common/ciphers/cipher_gcm.c [moved from providers/common/ciphers/gcm.c with 79% similarity]
providers/common/ciphers/cipher_gcm.h [moved from providers/common/ciphers/ciphers_gcm.h with 86% similarity]
providers/common/ciphers/cipher_gcm_hw.c [moved from providers/common/ciphers/gcm_hw.c with 69% similarity]
providers/common/ciphers/cipher_locl.h [new file with mode: 0644]
providers/common/ciphers/ciphers_common.c [deleted file]
providers/common/ciphers/ciphers_locl.h [deleted file]
providers/common/include/internal/provider_algs.h
providers/common/include/internal/providercommonerr.h
providers/default/defltprov.c
test/recipes/30-test_evp_data/evpciph.txt