openssl/test/recipes/30-test_evp_data
Richard Levitte b968945204 EVP: Expand the use of EVP_PKEY_CTX_md()
Setting a hash function was reserved for signature operations.
However, it turns out that SM2 uses a hash function for encryption and
decryption as well.
Therefore, EVP_PKEY_CTX_md() must be called with an expanded operation
type combination that includes EVP_PKEY_OP_TYPE_CRYPT when used in a
generic way.

For SM2, test/recipes/30-test_evp_data/evppkey_sm2.txt is expanded to
test decryption both with an implicit and an explicit digest.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12789)
2020-09-08 12:07:36 +02:00
..
evpciph_aes_ccm_cavs.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpciph_aes_common.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpciph_aes_cts1.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpciph_aes_cts23.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpciph_aes_ocb.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpciph_aes_siv.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpciph_aria.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpciph_bf.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpciph_camellia.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpciph_cast5.txt
evpciph_chacha.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpciph_des3_common.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpciph_des.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpciph_idea.txt
evpciph_rc2.txt
evpciph_rc4.txt
evpciph_rc5.txt
evpciph_seed.txt
evpciph_sm4.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpencod.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpkdf_hkdf.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpkdf_krb5.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpkdf_pbkdf2.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpkdf_scrypt.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpkdf_ss.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpkdf_ssh.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpkdf_tls11_prf.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpkdf_tls12_prf.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpkdf_x942.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpkdf_x963.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpmac_blake.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpmac_common.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpmac_poly1305.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpmac_siphash.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpmd_blake.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpmd_md.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpmd_mdc2.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpmd_ripemd.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpmd_sha.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpmd_sm3.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evpmd_whirlpool.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evppbe_pbkdf2.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evppbe_pkcs12.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evppbe_scrypt.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evppkey_brainpool.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evppkey_dsa.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evppkey_ecc.txt Revert "TEST: separate out NIST ECC tests from non-NIST" 2020-09-03 17:48:32 +02:00
evppkey_ecdh.txt Revert "TEST: separate out NIST ECC tests from non-NIST" 2020-09-03 17:48:32 +02:00
evppkey_ecdsa.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evppkey_ecx.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evppkey_ffdhe.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evppkey_kas.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evppkey_kdf_hkdf.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evppkey_kdf_scrypt.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evppkey_kdf_tls1_prf.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evppkey_mismatch.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evppkey_rsa.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00
evppkey_sm2.txt EVP: Expand the use of EVP_PKEY_CTX_md() 2020-09-08 12:07:36 +02:00
evprand.txt Add evp_test fixes. 2020-08-07 14:29:00 +10:00