openssl/providers/implementations/ciphers
Shane Lontis 4b51903d86 Fix AES_XTS on x86-64 platforms with BSAES and VPAES support.
Fixes #11622
Fixes #12378

Due to a missing else it was setting up the stream for BSAES and then using this incorrect stream with VPAES.
The correct behaviour is not to use VPAES at all in this case.
Also note that the original code in e_aes could set up VPAES and then would overwrite it with the generic implementation.
On a machine that supported both BSAES and VPAES the code was changed locally to force it to run both cases to verify
both paths produce the correct known answers.

Debugged using mageia 7.1, but is also highly likely to fix FreeBSD also.

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/12887)
2020-09-18 06:15:50 +10:00
..
build.info Add AES_CBC_CTS ciphers to providers 2020-07-15 23:11:50 +02:00
cipher_aes_cbc_hmac_sha1_hw.c Decreate the length after decryption for the stitched ciphers 2020-07-06 09:26:09 +01:00
cipher_aes_cbc_hmac_sha256_hw.c Decreate the length after decryption for the stitched ciphers 2020-07-06 09:26:09 +01:00
cipher_aes_cbc_hmac_sha.c ciphers: add FIPS error state handling 2020-09-12 16:46:51 +10:00
cipher_aes_cbc_hmac_sha.h
cipher_aes_ccm_hw_aesni.inc
cipher_aes_ccm_hw_s390x.inc
cipher_aes_ccm_hw_t4.inc
cipher_aes_ccm_hw.c
cipher_aes_ccm.c ciphers: add FIPS error state handling 2020-09-12 16:46:51 +10:00
cipher_aes_ccm.h
cipher_aes_cts_fips.c Add AES_CBC_CTS ciphers to providers 2020-07-15 23:11:50 +02:00
cipher_aes_cts.h Add AES_CBC_CTS ciphers to providers 2020-07-15 23:11:50 +02:00
cipher_aes_cts.inc Add AES_CBC_CTS ciphers to providers 2020-07-15 23:11:50 +02:00
cipher_aes_gcm_hw_aesni.inc
cipher_aes_gcm_hw_armv8.inc
cipher_aes_gcm_hw_s390x.inc
cipher_aes_gcm_hw_t4.inc
cipher_aes_gcm_hw.c
cipher_aes_gcm.c Update AES GCM IV max length to be 1024 bits (was 512) 2020-09-17 12:55:39 +10:00
cipher_aes_gcm.h
cipher_aes_hw_aesni.inc
cipher_aes_hw_s390x.inc Expose S390x HW ciphers' IV state to provider layer 2020-08-11 07:07:58 -07:00
cipher_aes_hw_t4.inc
cipher_aes_hw.c
cipher_aes_ocb_hw.c Fix provider cipher reinit issue 2020-07-22 10:40:55 +10:00
cipher_aes_ocb.c ciphers: add FIPS error state handling 2020-09-12 16:46:51 +10:00
cipher_aes_ocb.h
cipher_aes_siv_hw.c Fix provider cipher reinit issue 2020-07-22 10:40:55 +10:00
cipher_aes_siv.c ciphers: add FIPS error state handling 2020-09-12 16:46:51 +10:00
cipher_aes_siv.h Fix provider cipher reinit issue 2020-07-22 10:40:55 +10:00
cipher_aes_wrp.c ciphers: add FIPS error state handling 2020-09-12 16:46:51 +10:00
cipher_aes_xts_fips.c
cipher_aes_xts_hw.c Fix AES_XTS on x86-64 platforms with BSAES and VPAES support. 2020-09-18 06:15:50 +10:00
cipher_aes_xts.c ciphers: add FIPS error state handling 2020-09-12 16:46:51 +10:00
cipher_aes_xts.h
cipher_aes.c ciphers: add FIPS error state handling 2020-09-12 16:46:51 +10:00
cipher_aes.h
cipher_aria_ccm_hw.c
cipher_aria_ccm.c ciphers: add FIPS error state handling 2020-09-12 16:46:51 +10:00
cipher_aria_ccm.h
cipher_aria_gcm_hw.c
cipher_aria_gcm.c Update AES GCM IV max length to be 1024 bits (was 512) 2020-09-17 12:55:39 +10:00
cipher_aria_gcm.h
cipher_aria_hw.c
cipher_aria.c ciphers: add FIPS error state handling 2020-09-12 16:46:51 +10:00
cipher_aria.h
cipher_blowfish_hw.c
cipher_blowfish.c ciphers: add FIPS error state handling 2020-09-12 16:46:51 +10:00
cipher_blowfish.h
cipher_camellia_hw_t4.inc
cipher_camellia_hw.c
cipher_camellia.c ciphers: add FIPS error state handling 2020-09-12 16:46:51 +10:00
cipher_camellia.h
cipher_cast5_hw.c
cipher_cast5.c ciphers: add FIPS error state handling 2020-09-12 16:46:51 +10:00
cipher_cast.h
cipher_chacha20_hw.c
cipher_chacha20_poly1305_hw.c Update copyright year 2020-07-16 14:47:04 +02:00
cipher_chacha20_poly1305.c ciphers: add FIPS error state handling 2020-09-12 16:46:51 +10:00
cipher_chacha20_poly1305.h
cipher_chacha20.c ciphers: add FIPS error state handling 2020-09-12 16:46:51 +10:00
cipher_chacha20.h
cipher_des_hw.c
cipher_des.c ciphers: add FIPS error state handling 2020-09-12 16:46:51 +10:00
cipher_des.h
cipher_desx_hw.c
cipher_desx.c
cipher_idea_hw.c
cipher_idea.c ciphers: add FIPS error state handling 2020-09-12 16:46:51 +10:00
cipher_idea.h
cipher_null.c ciphers: add FIPS error state handling 2020-09-12 16:46:51 +10:00
cipher_rc2_hw.c
cipher_rc2.c ciphers: add FIPS error state handling 2020-09-12 16:46:51 +10:00
cipher_rc2.h
cipher_rc4_hmac_md5_hw.c
cipher_rc4_hmac_md5.c ciphers: add FIPS error state handling 2020-09-12 16:46:51 +10:00
cipher_rc4_hmac_md5.h
cipher_rc4_hw.c
cipher_rc4.c ciphers: add FIPS error state handling 2020-09-12 16:46:51 +10:00
cipher_rc4.h
cipher_rc5_hw.c
cipher_rc5.c ciphers: add FIPS error state handling 2020-09-12 16:46:51 +10:00
cipher_rc5.h
cipher_seed_hw.c
cipher_seed.c ciphers: add FIPS error state handling 2020-09-12 16:46:51 +10:00
cipher_seed.h
cipher_sm4_hw.c
cipher_sm4.c ciphers: add FIPS error state handling 2020-09-12 16:46:51 +10:00
cipher_sm4.h
cipher_tdes_common.c ciphers: add FIPS error state handling 2020-09-12 16:46:51 +10:00
cipher_tdes_default_hw.c
cipher_tdes_default.c
cipher_tdes_default.h
cipher_tdes_hw.c
cipher_tdes_wrap_hw.c
cipher_tdes_wrap.c ciphers: add FIPS error state handling 2020-09-12 16:46:51 +10:00
cipher_tdes.c
cipher_tdes.h
ciphercommon_block.c
ciphercommon_ccm_hw.c
ciphercommon_ccm.c ciphers: add FIPS error state handling 2020-09-12 16:46:51 +10:00
ciphercommon_gcm_hw.c
ciphercommon_gcm.c ciphers: add FIPS error state handling 2020-09-12 16:46:51 +10:00
ciphercommon_hw.c
ciphercommon_local.h Update copyright year 2020-07-16 14:47:04 +02:00
ciphercommon.c ciphers: add FIPS error state handling 2020-09-12 16:46:51 +10:00