openssl/test/recipes/30-test_evp_data
Simo Sorce 5c91f70ba8 Use the correct length value for input salt
In this function the salt can be either a zero buffer of exactly mdlen
length, or an arbitrary salt of prevsecretlen length.
Although in practice OpenSSL will always pass in a salt of mdlen size
bytes in the current TLS 1.3 code, the openssl kdf command can pass in
arbitrary values (I did it for testing), and a future change in the
higher layer code could also result in unmatched lengths.

If prevsecretlen is > mdlen this will cause incorrect salt expansion, if
prevsecretlen < mdlen this could cause a crash or reading random
information. Inboth case the generated output would be incorrect.

Signed-off-by: Simo Sorce <simo@redhat.com>

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25579)
2024-10-02 12:05:39 +02:00
..
evpciph_aes_ccm_cavs.txt
evpciph_aes_common.txt
evpciph_aes_cts.txt
evpciph_aes_gcm_siv.txt
evpciph_aes_ocb.txt
evpciph_aes_siv.txt
evpciph_aes_stitched.txt
evpciph_aes_wrap.txt
evpciph_aria.txt
evpciph_bf.txt
evpciph_camellia_cts.txt
evpciph_camellia.txt
evpciph_cast5.txt
evpciph_chacha.txt
evpciph_des3_common.txt Copyright year updates 2024-09-05 09:35:49 +02:00
evpciph_des.txt
evpciph_idea.txt
evpciph_rc2.txt
evpciph_rc4_stitched.txt
evpciph_rc4.txt
evpciph_rc5.txt
evpciph_seed.txt
evpciph_sm4.txt
evpencod.txt
evpkdf_argon2.txt
evpkdf_hkdf.txt Copyright year updates 2024-09-05 09:35:49 +02:00
evpkdf_hmac_drbg.txt
evpkdf_kbkdf_counter.txt Copyright year updates 2024-09-05 09:35:49 +02:00
evpkdf_kbkdf_kmac.txt Copyright year updates 2024-09-05 09:35:49 +02:00
evpkdf_krb5.txt
evpkdf_pbkdf1.txt
evpkdf_pbkdf2.txt Copyright year updates 2024-09-05 09:35:49 +02:00
evpkdf_pvkkdf.txt
evpkdf_scrypt.txt
evpkdf_ss.txt Copyright year updates 2024-09-05 09:35:49 +02:00
evpkdf_ssh.txt Copyright year updates 2024-09-05 09:35:49 +02:00
evpkdf_tls11_prf.txt
evpkdf_tls12_prf.txt Copyright year updates 2024-09-05 09:35:49 +02:00
evpkdf_tls13_kdf.txt Use the correct length value for input salt 2024-10-02 12:05:39 +02:00
evpkdf_x942_des.txt
evpkdf_x942.txt kdfs: implement key length check in X9.42 2024-09-30 20:03:49 +02:00
evpkdf_x963.txt Copyright year updates 2024-09-05 09:35:49 +02:00
evpmac_blake.txt
evpmac_cmac_des.txt Copyright year updates 2024-09-05 09:35:49 +02:00
evpmac_common.txt Copyright year updates 2024-09-05 09:35:49 +02:00
evpmac_poly1305.txt
evpmac_siphash.txt
evpmac_sm3.txt
evpmd_blake.txt
evpmd_md.txt
evpmd_mdc2.txt
evpmd_ripemd.txt
evpmd_sha.txt
evpmd_sm3.txt
evpmd_whirlpool.txt
evppbe_pbkdf2.txt
evppbe_pkcs12.txt
evppbe_scrypt.txt
evppkey_brainpool.txt
evppkey_dh.txt
evppkey_dsa_rfc6979.txt
evppkey_dsa_sigalg.txt Refactor OpenSSL 'DSA' EVP_SIGNATURE to also include DSA+hash composites 2024-08-30 11:54:13 +02:00
evppkey_dsa.txt Copyright year updates 2024-09-05 09:35:49 +02:00
evppkey_ecc.txt Copyright year updates 2024-09-05 09:35:49 +02:00
evppkey_ecdh.txt Copyright year updates 2024-09-05 09:35:49 +02:00
evppkey_ecdsa_rfc6979.txt
evppkey_ecdsa_sigalg.txt Refactor OpenSSL 'ECDSA' EVP_SIGNATURE to also include ECDSA+hash composites 2024-08-30 11:54:13 +02:00
evppkey_ecdsa.txt Copyright year updates 2024-09-05 09:35:49 +02:00
evppkey_ecx_sigalg.txt Add ED25519 and ED448 support for EVP_PKEY_{sign,verify}_init_ex2() 2024-08-29 19:13:07 +02:00
evppkey_ecx.txt Copyright year updates 2024-09-05 09:35:49 +02:00
evppkey_ffdhe.txt Copyright year updates 2024-09-05 09:35:49 +02:00
evppkey_kas.txt Copyright year updates 2024-09-05 09:35:49 +02:00
evppkey_kdf_hkdf.txt Copyright year updates 2024-09-05 09:35:49 +02:00
evppkey_kdf_scrypt.txt
evppkey_kdf_tls1_prf.txt Copyright year updates 2024-09-05 09:35:49 +02:00
evppkey_mismatch_ecx.txt
evppkey_mismatch.txt
evppkey_rsa_common.txt Copyright year updates 2024-09-05 09:35:49 +02:00
evppkey_rsa_sigalg.txt Copyright year updates 2024-09-05 09:35:49 +02:00
evppkey_rsa.txt Copyright year updates 2024-09-05 09:35:49 +02:00
evppkey_sm2.txt Copyright year updates 2024-09-05 09:35:49 +02:00
evprand.txt Copyright year updates 2024-09-05 09:35:49 +02:00