openssl/providers/implementations/ciphers
Matt Caswell 4b9c750be8 Make sure we handle input NULL with length 0
If we call EVP_EncryptUpdate/EVP_DecryptUpdate with length 0 we should
be able to handle it. Most importantly we shouldn't get different
results if we do this compared to if we don't!

An exception is made for CCM mode which has special handling for this in
the low level cipher function.

Fixes #8675

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10530)
2019-11-29 10:41:06 +00:00
..
build.info Add rc4_hmac_md5 cipher to default provider 2019-11-11 10:04:46 +10:00
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
cipher_aes_gcm_hw_aesni.inc
cipher_aes_gcm_hw_s390x.inc
cipher_aes_gcm_hw_t4.inc
cipher_aes_gcm_hw.c
cipher_aes_gcm.c
cipher_aes_hw_aesni.inc Fix Use after free when copying cipher ctx 2019-11-18 13:13:05 +10:00
cipher_aes_hw_s390x.inc fix s390 compile error due to missing comma. 2019-11-19 10:38:05 +10:00
cipher_aes_hw_t4.inc Fix Use after free when copying cipher ctx 2019-11-18 13:13:05 +10:00
cipher_aes_hw.c Fix Use after free when copying cipher ctx 2019-11-18 13:13:05 +10:00
cipher_aes_ocb_hw.c
cipher_aes_ocb.c Make sure we handle input NULL with length 0 2019-11-29 10:41:06 +00:00
cipher_aes_ocb.h
cipher_aes_siv_hw.c Add AES SIV ciphers to default provider 2019-11-08 12:14:44 +10:00
cipher_aes_siv.c Make sure we handle input NULL with length 0 2019-11-29 10:41:06 +00:00
cipher_aes_siv.h Add AES SIV ciphers to default provider 2019-11-08 12:14:44 +10:00
cipher_aes_wrp.c Make sure we handle input NULL with length 0 2019-11-29 10:41:06 +00:00
cipher_aes_xts_fips.c
cipher_aes_xts_hw.c Fix Use after free when copying cipher ctx 2019-11-18 13:13:05 +10:00
cipher_aes_xts.c Fix Use after free when copying cipher ctx 2019-11-18 13:13:05 +10:00
cipher_aes_xts.h
cipher_aes.c Fix Use after free when copying cipher ctx 2019-11-18 13:13:05 +10:00
cipher_aes.h
cipher_aria_ccm_hw.c
cipher_aria_ccm.c
cipher_aria_ccm.h
cipher_aria_gcm_hw.c
cipher_aria_gcm.c
cipher_aria_gcm.h
cipher_aria_hw.c Fix Use after free when copying cipher ctx 2019-11-18 13:13:05 +10:00
cipher_aria.c Fix Use after free when copying cipher ctx 2019-11-18 13:13:05 +10:00
cipher_aria.h
cipher_blowfish_hw.c
cipher_blowfish.c EVP_CIPHER_CTX_set_keylen should not succeed if a bad keylen is passed 2019-11-19 13:33:54 +00:00
cipher_blowfish.h
cipher_camellia_hw_t4.inc Fix Use after free when copying cipher ctx 2019-11-18 13:13:05 +10:00
cipher_camellia_hw.c Fix Use after free when copying cipher ctx 2019-11-18 13:13:05 +10:00
cipher_camellia.c Fix Use after free when copying cipher ctx 2019-11-18 13:13:05 +10:00
cipher_camellia.h
cipher_cast5_hw.c
cipher_cast5.c EVP_CIPHER_CTX_set_keylen should not succeed if a bad keylen is passed 2019-11-19 13:33:54 +00:00
cipher_cast.h
cipher_chacha20_hw.c Add ChaCha related ciphers to default provider 2019-10-16 16:18:42 +10:00
cipher_chacha20_poly1305_hw.c Fix typo in cipher_chacha20_poly1305_hw.c. 2019-10-31 10:50:38 +00:00
cipher_chacha20_poly1305.c Make sure we handle input NULL with length 0 2019-11-29 10:41:06 +00:00
cipher_chacha20_poly1305.h Add ChaCha related ciphers to default provider 2019-10-16 16:18:42 +10:00
cipher_chacha20.c ciphers/chacha20,poly1303: Fix two coverity errors 2019-10-20 23:58:05 +02:00
cipher_chacha20.h Add ChaCha related ciphers to default provider 2019-10-16 16:18:42 +10:00
cipher_des_hw.c
cipher_des.c Cleanup: move remaining providers/common/include/internal/*.h 2019-10-10 14:12:15 +02:00
cipher_des.h
cipher_desx_hw.c
cipher_desx.c
cipher_idea_hw.c
cipher_idea.c
cipher_idea.h
cipher_rc2_hw.c
cipher_rc2.c EVP_CIPHER_CTX_set_keylen should not succeed if a bad keylen is passed 2019-11-19 13:33:54 +00:00
cipher_rc2.h
cipher_rc4_hmac_md5_hw.c Add rc4_hmac_md5 cipher to default provider 2019-11-11 10:04:46 +10:00
cipher_rc4_hmac_md5.c Add rc4_hmac_md5 cipher to default provider 2019-11-11 10:04:46 +10:00
cipher_rc4_hmac_md5.h Add rc4_hmac_md5 cipher to default provider 2019-11-11 10:04:46 +10:00
cipher_rc4_hw.c
cipher_rc4.c EVP_CIPHER_CTX_set_keylen should not succeed if a bad keylen is passed 2019-11-19 13:33:54 +00:00
cipher_rc4.h
cipher_rc5_hw.c
cipher_rc5.c EVP_CIPHER_CTX_set_keylen should not succeed if a bad keylen is passed 2019-11-19 13:33:54 +00:00
cipher_rc5.h
cipher_seed_hw.c
cipher_seed.c
cipher_seed.h
cipher_sm4_hw.c Fix Use after free when copying cipher ctx 2019-11-18 13:13:05 +10:00
cipher_sm4.c Fix Use after free when copying cipher ctx 2019-11-18 13:13:05 +10:00
cipher_sm4.h
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 Make sure we handle input NULL with length 0 2019-11-29 10:41:06 +00:00
cipher_tdes.c Cleanup: move remaining providers/common/include/internal/*.h 2019-10-10 14:12:15 +02:00
cipher_tdes.h