openssl/providers/implementations/ciphers
Richard Levitte e077455e9e Stop raising ERR_R_MALLOC_FAILURE in most places
Since OPENSSL_malloc() and friends report ERR_R_MALLOC_FAILURE, and
at least handle the file name and line number they are called from,
there's no need to report ERR_R_MALLOC_FAILURE where they are called
directly, or when SSLfatal() and RLAYERfatal() is used, the reason
`ERR_R_MALLOC_FAILURE` is changed to `ERR_R_CRYPTO_LIB`.

There were a number of places where `ERR_R_MALLOC_FAILURE` was reported
even though it was a function from a different sub-system that was
called.  Those places are changed to report ERR_R_{lib}_LIB, where
{lib} is the name of that sub-system.
Some of them are tricky to get right, as we have a lot of functions
that belong in the ASN1 sub-system, and all the `sk_` calls or from
the CRYPTO sub-system.

Some extra adaptation was necessary where there were custom OPENSSL_malloc()
wrappers, and some bugs are fixed alongside these changes.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19301)
2022-10-05 14:02:03 +02:00
..
build.info Implement AES-GCM-SIV (RFC8452) 2022-07-29 08:32:16 -04:00
cipher_aes_cbc_hmac_sha1_hw.c Update copyright year 2021-06-17 13:24:59 +01:00
cipher_aes_cbc_hmac_sha256_hw.c Update copyright year 2021-06-17 13:24:59 +01:00
cipher_aes_cbc_hmac_sha.c Move libssl related defines used by fips provider to prov_ssl.h 2021-06-04 17:06:47 +02:00
cipher_aes_cbc_hmac_sha.h
cipher_aes_ccm_hw_aesni.inc
cipher_aes_ccm_hw_rv32i_zknd_zkne.inc provider: cipher: aes: add riscv32 zkn (zbkb) support 2022-09-05 10:20:30 +10:00
cipher_aes_ccm_hw_rv64i_zknd_zkne.inc providers: cipher: aes: add riscv64 zkn support 2022-06-10 11:45:48 +02:00
cipher_aes_ccm_hw_s390x.inc
cipher_aes_ccm_hw_t4.inc
cipher_aes_ccm_hw.c provider: cipher: aes: add riscv32 zkn (zbkb) support 2022-09-05 10:20:30 +10:00
cipher_aes_ccm.c
cipher_aes_ccm.h
cipher_aes_cts.inc Refactor cipher aes_cts code so that it can be used by other 128bit ciphers 2021-08-18 08:38:40 +10:00
cipher_aes_gcm_hw_aesni.inc Update copyright year 2022-05-03 13:34:51 +01:00
cipher_aes_gcm_hw_armv8.inc Update copyright year 2022-05-03 13:34:51 +01:00
cipher_aes_gcm_hw_ppc.inc Fix AES-GCM on Power 8 CPUs 2022-09-13 14:41:39 +02:00
cipher_aes_gcm_hw_rv32i_zknd_zkne.inc provider: cipher: aes: add riscv32 zkn (zbkb) support 2022-09-05 10:20:30 +10:00
cipher_aes_gcm_hw_rv64i_zknd_zkne.inc providers: cipher: aes: add riscv64 zkn support 2022-06-10 11:45:48 +02:00
cipher_aes_gcm_hw_s390x.inc Update copyright year 2021-06-17 13:24:59 +01:00
cipher_aes_gcm_hw_t4.inc
cipher_aes_gcm_hw_vaes_avx512.inc Update copyright year 2022-05-03 13:34:51 +01:00
cipher_aes_gcm_hw.c provider: cipher: aes: add riscv32 zkn (zbkb) support 2022-09-05 10:20:30 +10:00
cipher_aes_gcm_siv_hw.c Fix AES-GCM-SIV endian issues 2022-08-01 10:23:57 +02:00
cipher_aes_gcm_siv_polyval.c Fix AES-GCM-SIV endian issues 2022-08-01 10:23:57 +02:00
cipher_aes_gcm_siv.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
cipher_aes_gcm_siv.h Fix AES-GCM-SIV endian issues 2022-08-01 10:23:57 +02:00
cipher_aes_gcm.c Remove lower limit on GCM mode ciphers 2021-07-14 12:02:03 +02:00
cipher_aes_gcm.h Update copyright year 2021-06-17 13:24:59 +01:00
cipher_aes_hw_aesni.inc
cipher_aes_hw_rv32i_zknd_zkne.inc provider: cipher: aes: add riscv32 zkn (zbkb) support 2022-09-05 10:20:30 +10:00
cipher_aes_hw_rv64i_zknd_zkne.inc providers: cipher: aes: add riscv64 zkn support 2022-06-10 11:45:48 +02:00
cipher_aes_hw_s390x.inc Fix CipherInit on s390x. 2021-06-08 14:32:44 +10:00
cipher_aes_hw_t4.inc
cipher_aes_hw.c provider: cipher: aes: add riscv32 zkn (zbkb) support 2022-09-05 10:20:30 +10:00
cipher_aes_ocb_hw.c provider: cipher: aes: add riscv32 zkn (zbkb) support 2022-09-05 10:20:30 +10:00
cipher_aes_ocb.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
cipher_aes_ocb.h
cipher_aes_siv_hw.c Update copyright year 2021-04-08 13:04:41 +01:00
cipher_aes_siv.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
cipher_aes_siv.h
cipher_aes_wrp.c aes-wrap: improve error handling 2021-08-26 09:33:52 +10:00
cipher_aes_xts_fips.c Update copyright year 2021-04-08 13:04:41 +01:00
cipher_aes_xts_hw.c provider: cipher: aes: add riscv32 zkn (zbkb) support 2022-09-05 10:20:30 +10:00
cipher_aes_xts.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
cipher_aes_xts.h Update copyright year 2021-04-08 13:04:41 +01:00
cipher_aes.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02: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 Remove lower limit on GCM mode ciphers 2021-07-14 12:02:03 +02:00
cipher_aria_gcm.h
cipher_aria_hw.c
cipher_aria.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
cipher_aria.h
cipher_blowfish_hw.c
cipher_blowfish.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
cipher_blowfish.h
cipher_camellia_cts.inc Add support for camellia cbc cts mode 2021-08-18 08:38:40 +10:00
cipher_camellia_hw_t4.inc
cipher_camellia_hw.c
cipher_camellia.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
cipher_camellia.h Update copyright year 2021-06-17 13:24:59 +01:00
cipher_cast5_hw.c
cipher_cast5.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
cipher_cast.h
cipher_chacha20_hw.c
cipher_chacha20_poly1305_hw.c
cipher_chacha20_poly1305.c
cipher_chacha20_poly1305.h
cipher_chacha20.c fix some code with obvious wrong coding style 2021-10-28 13:10:46 +10:00
cipher_chacha20.h
cipher_cts.c Update copyright year 2022-05-03 13:34:51 +01:00
cipher_cts.h Refactor cipher aes_cts code so that it can be used by other 128bit ciphers 2021-08-18 08:38:40 +10:00
cipher_des_hw.c Fix Coverity 1498605 & 1498606: uninitialised value 2022-07-06 10:37:12 +10:00
cipher_des.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
cipher_des.h
cipher_desx_hw.c
cipher_desx.c
cipher_idea_hw.c
cipher_idea.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
cipher_idea.h
cipher_null.c
cipher_rc2_hw.c
cipher_rc2.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
cipher_rc2.h
cipher_rc4_hmac_md5_hw.c
cipher_rc4_hmac_md5.c Update copyright year 2022-05-03 13:34:51 +01:00
cipher_rc4_hmac_md5.h
cipher_rc4_hw.c
cipher_rc4.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
cipher_rc4.h
cipher_rc5_hw.c
cipher_rc5.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
cipher_rc5.h Fix PROV_RC5_CTX's original structure name 2022-09-12 08:38:48 +02:00
cipher_seed_hw.c
cipher_seed.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
cipher_seed.h
cipher_sm4_ccm_hw.c providers: Add SM4 GCM implementation 2021-09-28 19:27:58 +10:00
cipher_sm4_ccm.c providers: Add SM4 GCM implementation 2021-09-28 19:27:58 +10:00
cipher_sm4_ccm.h providers: Add SM4 GCM implementation 2021-09-28 19:27:58 +10:00
cipher_sm4_gcm_hw.c Update copyright year 2022-05-03 13:34:51 +01:00
cipher_sm4_gcm.c providers: Add SM4 GCM implementation 2021-09-28 19:27:58 +10:00
cipher_sm4_gcm.h providers: Add SM4 GCM implementation 2021-09-28 19:27:58 +10:00
cipher_sm4_hw.c Update copyright year 2022-05-03 13:34:51 +01:00
cipher_sm4.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
cipher_sm4.h Update copyright year 2022-05-03 13:34:51 +01:00
cipher_tdes_common.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
cipher_tdes_default_hw.c Fix Coverity 1498605 & 1498606: uninitialised value 2022-07-06 10:37:12 +10:00
cipher_tdes_default.c Update copyright year 2022-05-03 13:34:51 +01:00
cipher_tdes_default.h
cipher_tdes_hw.c
cipher_tdes_wrap_hw.c
cipher_tdes_wrap.c Add a gettable for provider ciphers to return the EVP_CIPH_RAND_KEY flag 2021-06-08 15:16:06 +10:00
cipher_tdes.c Update copyright year 2022-05-03 13:34:51 +01:00
cipher_tdes.h Add a gettable for provider ciphers to return the EVP_CIPH_RAND_KEY flag 2021-06-08 15:16:06 +10:00
ciphercommon_block.c fix some code with obvious wrong coding style 2021-10-28 13:10:46 +10:00
ciphercommon_ccm_hw.c
ciphercommon_ccm.c
ciphercommon_gcm_hw.c
ciphercommon_gcm.c GCM: record limit counter gets reset on AAD changes 2022-07-27 15:20:49 +02:00
ciphercommon_hw.c Fix param indentation in ciphercommon_hw.c 2021-06-01 15:22:30 +10:00
ciphercommon_local.h
ciphercommon.c Add a gettable for provider ciphers to return the EVP_CIPH_RAND_KEY flag 2021-06-08 15:16:06 +10:00