openssl/providers/implementations/ciphers
Holger Dengler 576a3572be Fix partial block encryption in cfb and ofb for s390x
Use the number of processed bytes information (num) from the generic
cipher context for the partial block handling in cfb and ofb, instead
of keep this information in the s390x-specific part of the cipher
context. The information in the generic context is reset properly,
even if the context is re-initialized without resetting the key or iv.

Fixes: #23175

Signed-off-by: Holger Dengler <dengler@linux.ibm.com>

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23201)
2024-01-12 10:34:39 +01:00
..
build.info Remove AES SIV ciphers from the FIPS provider 2023-03-01 18:35:01 +11:00
cipher_aes_cbc_hmac_sha1_hw.c
cipher_aes_cbc_hmac_sha256_hw.c
cipher_aes_cbc_hmac_sha.c Add dupctx support to rc4_hmac_md5 algo 2023-09-12 15:59:11 +02:00
cipher_aes_cbc_hmac_sha.h
cipher_aes_ccm_hw_aesni.inc
cipher_aes_ccm_hw_rv32i.inc Copyright year updates 2023-09-07 09:59:15 +01:00
cipher_aes_ccm_hw_rv64i.inc riscv: Implement AES-192 2023-10-26 15:55:49 +01:00
cipher_aes_ccm_hw_s390x.inc
cipher_aes_ccm_hw_t4.inc
cipher_aes_ccm_hw.c Fix detection for riscv64/riscv32 2023-12-12 16:08:05 +00:00
cipher_aes_ccm.c Copyright year updates 2023-09-28 14:23:29 +01:00
cipher_aes_ccm.h
cipher_aes_cts.inc
cipher_aes_gcm_hw_aesni.inc
cipher_aes_gcm_hw_armv8.inc Optimize AES-CTR for ARM Neoverse V1 and V2. 2023-11-29 18:10:31 +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.inc Copyright year updates 2023-09-07 09:59:15 +01:00
cipher_aes_gcm_hw_rv64i.inc Provide additional AES-GCM test patterns to enhance test coverage. 2023-10-26 15:55:50 +01:00
cipher_aes_gcm_hw_s390x.inc
cipher_aes_gcm_hw_t4.inc
cipher_aes_gcm_hw_vaes_avx512.inc Avoid another copy of key schedule pointer in PROV_GCM_CTX 2023-10-16 12:12:36 +02:00
cipher_aes_gcm_hw.c Minor changes of the GCM-related code. 2023-10-26 15:55:50 +01: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 Copyright year updates 2023-09-07 09:59:15 +01:00
cipher_aes_gcm_siv.c Fix aes_gcm_siv dupctx function 2023-09-12 15:59:11 +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 Copyright year updates 2023-09-28 14:23:29 +01:00
cipher_aes_gcm.h
cipher_aes_hw_aesni.inc
cipher_aes_hw_armv8.inc Optimize AES-CTR for ARM Neoverse V1 and V2. 2023-11-29 18:10:31 +01:00
cipher_aes_hw_rv32i.inc Copyright year updates 2023-09-07 09:59:15 +01:00
cipher_aes_hw_rv64i.inc riscv: Provide vector crypto implementation of AES-ECB mode. 2023-10-26 15:55:50 +01:00
cipher_aes_hw_s390x.inc Fix partial block encryption in cfb and ofb for s390x 2024-01-12 10:34:39 +01:00
cipher_aes_hw_t4.inc
cipher_aes_hw.c Optimize AES-CTR for ARM Neoverse V1 and V2. 2023-11-29 18:10:31 +01:00
cipher_aes_ocb_hw.c riscv: Implement AES-192 2023-10-26 15:55:49 +01:00
cipher_aes_ocb.c When changing IV length invalidate previously set IV 2023-11-03 13:36:13 +01:00
cipher_aes_ocb.h
cipher_aes_siv_hw.c
cipher_aes_siv.c "foo * bar" should be "foo *bar" 2023-09-11 10:15:30 +02:00
cipher_aes_siv.h
cipher_aes_wrp.c implement dupctx for aes_WRAP methods 2023-09-12 15:59:11 +02:00
cipher_aes_xts_fips.c
cipher_aes_xts_hw.c riscv: Fix mispelling of extension test macro 2024-01-02 11:39:18 +01:00
cipher_aes_xts.c Copyright year updates 2023-09-07 09:59:15 +01:00
cipher_aes_xts.h
cipher_aes.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
cipher_aes.h Fix partial block encryption in cfb and ofb for s390x 2024-01-12 10:34:39 +01:00
cipher_aria_ccm_hw.c
cipher_aria_ccm.c Copyright year updates 2023-09-28 14:23:29 +01:00
cipher_aria_ccm.h
cipher_aria_gcm_hw.c
cipher_aria_gcm.c Copyright year updates 2023-09-28 14:23:29 +01: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
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
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 Copyright year updates 2023-09-07 09:59:15 +01:00
cipher_chacha20_poly1305.c implement dupctx for chacha20_poly1305 2023-09-12 15:59:11 +02:00
cipher_chacha20_poly1305.h Copyright year updates 2023-09-07 09:59:15 +01:00
cipher_chacha20.c Copyright year updates 2023-09-07 09:59:15 +01:00
cipher_chacha20.h
cipher_cts.c
cipher_cts.h Copyright year updates 2023-09-07 09:59:15 +01:00
cipher_des_hw.c
cipher_des.c update/final: Return error if key is not set 2023-11-03 13:36:13 +01: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 Copyright year updates 2023-09-07 09:59:15 +01:00
cipher_rc2_hw.c
cipher_rc2.c "foo * bar" should be "foo *bar" 2023-09-11 10:15:30 +02:00
cipher_rc2.h
cipher_rc4_hmac_md5_hw.c
cipher_rc4_hmac_md5.c Add dupctx support to rc4_hmac_md5 algo 2023-09-12 15:59:11 +02:00
cipher_rc4_hmac_md5.h Copyright year updates 2023-09-07 09:59:15 +01:00
cipher_rc4_hw.c
cipher_rc4.c "foo * bar" should be "foo *bar" 2023-09-11 10:15:30 +02:00
cipher_rc4.h
cipher_rc5_hw.c
cipher_rc5.c "foo * bar" should be "foo *bar" 2023-09-11 10:15:30 +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_rv64i.inc Update for Zvkb extension. 2023-10-26 15:55:50 +01:00
cipher_sm4_ccm_hw.c riscv: SM4: Provide a Zvksed-based implementation 2023-10-26 15:55:49 +01:00
cipher_sm4_ccm.c Copyright year updates 2023-09-28 14:23:29 +01:00
cipher_sm4_ccm.h riscv: SM4: Provide a Zvksed-based implementation 2023-10-26 15:55:49 +01:00
cipher_sm4_gcm_hw_rv64i.inc Update for Zvkb extension. 2023-10-26 15:55:50 +01:00
cipher_sm4_gcm_hw.c riscv: SM4: Provide a Zvksed-based implementation 2023-10-26 15:55:49 +01:00
cipher_sm4_gcm.c Copyright year updates 2023-09-28 14:23:29 +01:00
cipher_sm4_gcm.h
cipher_sm4_hw_rv64i.inc Update for Zvkb extension. 2023-10-26 15:55:50 +01:00
cipher_sm4_hw.c riscv: SM4: Provide a Zvksed-based implementation 2023-10-26 15:55:49 +01:00
cipher_sm4_xts_hw_rv64i.inc Update for Zvkb extension. 2023-10-26 15:55:50 +01:00
cipher_sm4_xts_hw.c riscv: SM4: Provide a Zvksed-based implementation 2023-10-26 15:55:49 +01:00
cipher_sm4_xts.c Copyright year updates 2023-09-07 09:59:15 +01:00
cipher_sm4_xts.h Copyright year updates 2023-09-07 09:59:15 +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
cipher_tdes_common.c update/final: Return error if key is not set 2023-11-03 13:36:13 +01: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 Copyright year updates 2023-09-07 09:59:15 +01:00
cipher_tdes.c
cipher_tdes.h Copyright year updates 2023-09-07 09:59:15 +01:00
ciphercommon_block.c Copyright year updates 2023-09-07 09:59:15 +01:00
ciphercommon_ccm_hw.c
ciphercommon_ccm.c When changing IV length invalidate previously set IV 2023-11-03 13:36:13 +01:00
ciphercommon_gcm_hw.c
ciphercommon_gcm.c When changing IV length invalidate previously set IV 2023-11-03 13:36:13 +01:00
ciphercommon_hw.c
ciphercommon_local.h
ciphercommon.c update/final: Return error if key is not set 2023-11-03 13:36:13 +01:00