openssl/providers/implementations/ciphers
Matt Caswell d23adad113 EVP_CIPHER_CTX_set_keylen should not succeed if a bad keylen is passed
EVP_CIPHER_CTX_set_keylen() was succeeding even though a bad key length
is passed to it. This is because the set_ctx_params() were all accepting
this parameter and blindly changing the keylen even though the cipher did
not accept a variable key length. Even removing this didn't entirely
resolve the issue because set_ctx_params() functions succeed even if
passed a parameter they do not recognise.

This should fix various issues found by OSSfuzz/Cryptofuzz.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/10449)
2019-11-19 13:33:54 +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 Fix Use after free when copying cipher ctx 2019-11-18 13:13:05 +10: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 Fix the issue that aes-xxx-siv algorithms failed in OpenSSL speed test 2019-11-19 09:31:04 +10:00
cipher_aes_siv.h Add AES SIV ciphers to default provider 2019-11-08 12:14:44 +10:00
cipher_aes_wrp.c Remove EVP_CIPH_FLAG_CUSTOM_CIPHER in all our providers 2019-10-11 15:58:15 +02: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 ciphers/chacha20,poly1303: Fix two coverity errors 2019-10-20 23:58:05 +02: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 Remove EVP_CIPH_FLAG_CUSTOM_CIPHER in all our providers 2019-10-11 15:58:15 +02:00
cipher_tdes.c Cleanup: move remaining providers/common/include/internal/*.h 2019-10-10 14:12:15 +02:00
cipher_tdes.h