openssl/providers/implementations/ciphers
Pauli 9698a56e82 aes-wrap: improve error handling
The AES wrap cipher was return -1 on error from the provider rather than 0.
This is fixed.

There was a problem with the error handling in AES wrap which fell back to a
default "final error".  This adds a fix for the error and more specific errors
for the different failure possibilities.

Fixes #16387

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16391)
2021-08-26 09:33:52 +10:00
..
build.info 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_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 prov: prefix all exposed 'cipher' symbols with ossl_ 2020-10-01 10:33:57 +10:00
cipher_aes_ccm_hw_aesni.inc Update copyright year 2021-03-11 13:27:36 +00:00
cipher_aes_ccm_hw_s390x.inc Update copyright year 2020-10-15 14:10:06 +01:00
cipher_aes_ccm_hw_t4.inc Update copyright year 2021-03-11 13:27:36 +00:00
cipher_aes_ccm_hw.c Update copyright year 2021-03-11 13:27:36 +00:00
cipher_aes_ccm.c Update copyright year 2021-03-11 13:27:36 +00:00
cipher_aes_ccm.h Update copyright year 2020-10-15 14:10:06 +01:00
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 2021-03-11 13:27:36 +00:00
cipher_aes_gcm_hw_armv8.inc Update copyright year 2021-03-11 13:27:36 +00:00
cipher_aes_gcm_hw_s390x.inc Update copyright year 2021-06-17 13:24:59 +01:00
cipher_aes_gcm_hw_t4.inc Update copyright year 2021-03-11 13:27:36 +00:00
cipher_aes_gcm_hw.c aes: rename new bsaes_ symbols -> ossl_bsaes_ ones 2021-05-27 09:35:50 +10: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 Update copyright year 2021-02-18 15:05:17 +00:00
cipher_aes_hw_s390x.inc Fix CipherInit on s390x. 2021-06-08 14:32:44 +10:00
cipher_aes_hw_t4.inc Update copyright year 2021-02-18 15:05:17 +00:00
cipher_aes_hw.c aes: rename new bsaes_ symbols -> ossl_bsaes_ ones 2021-05-27 09:35:50 +10:00
cipher_aes_ocb_hw.c prov: prefix provider internal functions with ossl_ 2020-09-29 16:33:16 +10:00
cipher_aes_ocb.c support params argument to AES cipher init calls 2021-03-12 08:27:21 +10:00
cipher_aes_ocb.h Update copyright year 2020-10-15 14:10:06 +01:00
cipher_aes_siv_hw.c Update copyright year 2021-04-08 13:04:41 +01:00
cipher_aes_siv.c Fix incorrect OSSL_CIPHER_PARAM_SPEED get_ctx_params 2021-05-28 14:29:13 +02:00
cipher_aes_siv.h Update copyright year 2021-02-18 15:05:17 +00:00
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 Update copyright year 2021-06-17 13:24:59 +01:00
cipher_aes_xts.c Add ossl_provider symbols 2021-03-18 17:52:38 +10:00
cipher_aes_xts.h Update copyright year 2021-04-08 13:04:41 +01:00
cipher_aes.c prov: prefix all exposed 'cipher' symbols with ossl_ 2020-10-01 10:33:57 +10:00
cipher_aes.h Update copyright year 2020-10-15 14:10:06 +01:00
cipher_aria_ccm_hw.c Add ossl_aria symbols 2021-03-18 17:52:37 +10:00
cipher_aria_ccm.c Update copyright year 2021-03-11 13:27:36 +00:00
cipher_aria_ccm.h Update copyright year 2020-10-15 14:10:06 +01:00
cipher_aria_gcm_hw.c Add ossl_aria symbols 2021-03-18 17:52:37 +10:00
cipher_aria_gcm.c Remove lower limit on GCM mode ciphers 2021-07-14 12:02:03 +02:00
cipher_aria_gcm.h Update copyright year 2020-10-15 14:10:06 +01:00
cipher_aria_hw.c Add ossl_aria symbols 2021-03-18 17:52:37 +10:00
cipher_aria.c prov: prefix all exposed 'cipher' symbols with ossl_ 2020-10-01 10:33:57 +10:00
cipher_aria.h Update copyright year 2020-10-15 14:10:06 +01:00
cipher_blowfish_hw.c prov: prefix provider internal functions with ossl_ 2020-09-29 16:33:16 +10:00
cipher_blowfish.c Update copyright year 2021-02-18 15:05:17 +00:00
cipher_blowfish.h Update copyright year 2020-10-15 14:10:06 +01:00
cipher_camellia_cts.inc Add support for camellia cbc cts mode 2021-08-18 08:38:40 +10:00
cipher_camellia_hw_t4.inc Update copyright year 2021-02-18 15:05:17 +00:00
cipher_camellia_hw.c Update copyright year 2021-02-18 15:05:17 +00:00
cipher_camellia.c Add support for camellia cbc cts mode 2021-08-18 08:38:40 +10:00
cipher_camellia.h Update copyright year 2021-06-17 13:24:59 +01:00
cipher_cast5_hw.c prov: prefix provider internal functions with ossl_ 2020-09-29 16:33:16 +10:00
cipher_cast5.c Update copyright year 2021-02-18 15:05:17 +00:00
cipher_cast.h Update copyright year 2020-10-15 14:10:06 +01:00
cipher_chacha20_hw.c Update copyright year 2021-01-28 13:54:57 +01:00
cipher_chacha20_poly1305_hw.c prov: support params argument to CHACHA20 ciphers 2021-03-12 08:27:21 +10:00
cipher_chacha20_poly1305.c prov: support params argument to CHACHA20 ciphers 2021-03-12 08:27:21 +10:00
cipher_chacha20_poly1305.h Update copyright year 2020-10-15 14:10:06 +01:00
cipher_chacha20.c prov: support params argument to CHACHA20 ciphers 2021-03-12 08:27:21 +10:00
cipher_chacha20.h Update copyright year 2021-03-11 13:27:36 +00:00
cipher_cts.c Fix CTS cipher decrypt so that the updated IV is returned correctly. 2021-08-18 08:38:40 +10: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 Update copyright year 2021-03-11 13:27:36 +00:00
cipher_des.c Add a gettable for provider ciphers to return the EVP_CIPH_RAND_KEY flag 2021-06-08 15:16:06 +10:00
cipher_des.h Update copyright year 2021-02-18 15:05:17 +00:00
cipher_desx_hw.c prov: prefix provider internal functions with ossl_ 2020-09-29 16:33:16 +10:00
cipher_desx.c Update copyright year 2020-04-23 13:55:52 +01:00
cipher_idea_hw.c prov: prefix provider internal functions with ossl_ 2020-09-29 16:33:16 +10:00
cipher_idea.c prov: prefix all exposed 'cipher' symbols with ossl_ 2020-10-01 10:33:57 +10:00
cipher_idea.h Update copyright year 2020-10-15 14:10:06 +01:00
cipher_null.c prov: support param argument to null cipher init calls 2021-03-12 08:27:21 +10:00
cipher_rc2_hw.c prov: prefix provider internal functions with ossl_ 2020-09-29 16:33:16 +10:00
cipher_rc2.c Fixes #15070. Allow custom algorithm ID ASN.1 encoding for provided ciphers 2021-05-07 11:00:54 +02:00
cipher_rc2.h Update copyright year 2020-10-15 14:10:06 +01:00
cipher_rc4_hmac_md5_hw.c Fix RC4-MD5 based ciphersuites 2020-11-25 10:14:43 +00:00
cipher_rc4_hmac_md5.c prov: support params argument to RCx ciphers 2021-03-12 08:27:21 +10:00
cipher_rc4_hmac_md5.h Update copyright year 2020-10-15 14:10:06 +01:00
cipher_rc4_hw.c prov: prefix provider internal functions with ossl_ 2020-09-29 16:33:16 +10:00
cipher_rc4.c prov: support params argument to RCx ciphers 2021-03-12 08:27:21 +10:00
cipher_rc4.h Update copyright year 2020-10-15 14:10:06 +01:00
cipher_rc5_hw.c prov: prefix provider internal functions with ossl_ 2020-09-29 16:33:16 +10:00
cipher_rc5.c prov: support params argument to RCx ciphers 2021-03-12 08:27:21 +10:00
cipher_rc5.h Update copyright year 2020-10-15 14:10:06 +01:00
cipher_seed_hw.c prov: prefix provider internal functions with ossl_ 2020-09-29 16:33:16 +10:00
cipher_seed.c prov: prefix all exposed 'cipher' symbols with ossl_ 2020-10-01 10:33:57 +10:00
cipher_seed.h Update copyright year 2020-10-15 14:10:06 +01:00
cipher_sm4_hw.c Update copyright year 2021-04-08 13:04:41 +01:00
cipher_sm4.c prov: prefix all exposed 'cipher' symbols with ossl_ 2020-10-01 10:33:57 +10:00
cipher_sm4.h Update copyright year 2020-10-15 14:10:06 +01:00
cipher_tdes_common.c prov: add zero strenght arguments to BN and RAND RNG calls 2021-05-29 17:17:12 +10:00
cipher_tdes_default_hw.c Update copyright year 2021-02-18 15:05:17 +00:00
cipher_tdes_default.c prov: prefix all OSSL_DISPATCH tables names with ossl_ 2020-09-29 16:31:46 +10:00
cipher_tdes_default.h Update copyright year 2020-10-15 14:10:06 +01:00
cipher_tdes_hw.c prov: prefix all exposed 'cipher' symbols with ossl_ 2020-10-01 10:33:57 +10:00
cipher_tdes_wrap_hw.c prov: prefix all exposed 'cipher' symbols with ossl_ 2020-10-01 10:33:57 +10:00
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 2021-02-18 15:05:17 +00: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 Move libssl related defines used by fips provider to prov_ssl.h 2021-06-04 17:06:47 +02:00
ciphercommon_ccm_hw.c Update copyright year 2021-03-11 13:27:36 +00:00
ciphercommon_ccm.c prov: support params argument to common cipher init calls 2021-03-12 08:27:21 +10:00
ciphercommon_gcm_hw.c Update copyright year 2021-03-11 13:27:36 +00:00
ciphercommon_gcm.c Remove lower limit on GCM mode ciphers 2021-07-14 12:02:03 +02:00
ciphercommon_hw.c Fix param indentation in ciphercommon_hw.c 2021-06-01 15:22:30 +10:00
ciphercommon_local.h Update copyright year 2021-03-11 13:27:36 +00:00
ciphercommon.c Add a gettable for provider ciphers to return the EVP_CIPH_RAND_KEY flag 2021-06-08 15:16:06 +10:00