openssl/crypto/evp
Matt Caswell d8025f4ac0 Correctly display the signing/hmac algorithm in the dgst app
In OpenSSL 1.1.1 doing an HMAC operation with (say) SHA1 would produce
output like this:

HMAC-SHA1(README.md)= 553154e4c0109ddc320bb495735906ad7135c2f1

Prior to this change master would instead display this like so:

SHA1(README.md)= 553154e4c0109ddc320bb495735906ad7135c2f1

The problem is that dgst was using EVP_PKEY_asn1_get0_info() to get
the algorithm name from the EVP_PKEY. This doesn't work with provider
based keys. Instead we introduce a new EVP_PKEY_get0_first_alg_name()
function, and an equivalent EVP_KEYMGMT_get0_first_name() function.

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/12850)
2020-09-17 11:12:08 +03:00
..
asymcipher.c Add self tests for rsa encryption 2020-09-16 14:10:23 +10:00
bio_b64.c
bio_enc.c
bio_md.c
bio_ok.c Add and use internal header that implements endianness check 2020-07-11 10:00:33 +02:00
build.info Add self tests for rsa encryption 2020-09-16 14:10:23 +10:00
c_allc.c
c_alld.c
cmeth_lib.c Update copyright year 2020-08-06 13:22:30 +01:00
digest.c Redirect EVP_DigestInit to EVP_DigestSignInit_ex if appropriate 2020-09-17 11:12:08 +03:00
e_aes_cbc_hmac_sha1.c Use local IV storage in e_aes_ebc_hmac_sha1.c 2020-08-11 07:07:57 -07:00
e_aes_cbc_hmac_sha256.c Use local IV storage in e_aes_ebc_hmac_sha256.c 2020-08-11 07:07:57 -07:00
e_aes.c Use local IV storage in e_aes.c 2020-08-11 07:07:57 -07:00
e_aria.c Use local IV storage in e_aria.c 2020-08-11 07:07:58 -07:00
e_bf.c Use local IV storage in EVP BLOCK_* macros 2020-08-11 07:07:58 -07:00
e_camellia.c Use local IV storage in e_camellia.c 2020-08-11 07:07:58 -07:00
e_cast.c Use local IV storage in EVP BLOCK_* macros 2020-08-11 07:07:58 -07:00
e_chacha20_poly1305.c Update copyright year 2020-07-16 14:47:04 +02:00
e_des3.c Use local IV storage in e_des3.c 2020-08-11 07:07:58 -07:00
e_des.c Use local IV storage in e_des.c 2020-08-11 07:07:58 -07:00
e_idea.c Use local IV storage in EVP BLOCK_* macros 2020-08-11 07:07:58 -07:00
e_null.c
e_old.c
e_rc2.c Use local IV storage in EVP BLOCK_* macros 2020-08-11 07:07:58 -07:00
e_rc4_hmac_md5.c
e_rc4.c
e_rc5.c
e_seed.c Use local IV storage in EVP BLOCK_* macros 2020-08-11 07:07:58 -07:00
e_sm4.c Use local IV storage in e_sm4.c 2020-08-11 07:07:58 -07:00
e_xcbc_d.c Use local IV storage in e_xcbc_d.c 2020-08-11 07:07:58 -07:00
encode.c
evp_cnf.c Fix safestack issues in conf.h 2020-09-13 11:11:20 +01:00
evp_enc.c EVP: Centralise fetching error reporting 2020-09-13 20:52:48 +02:00
evp_err.c Extend the EVP_PKEY KDF to KDF provider bridge to also support HKDF 2020-08-10 14:51:59 +01:00
evp_fetch.c EVP: Centralise fetching error reporting 2020-09-13 20:52:48 +02:00
evp_key.c
evp_lib.c Add CMS AuthEnvelopedData with AES-GCM support 2020-09-08 15:43:11 +02:00
evp_local.h Add CMS AuthEnvelopedData with AES-GCM support 2020-09-08 15:43:11 +02:00
evp_pbe.c
evp_pkey.c Correctly display the signing/hmac algorithm in the dgst app 2020-09-17 11:12:08 +03:00
evp_rand.c rand_drbg: remove RAND_DRBG. 2020-08-07 14:16:47 +10:00
evp_utils.c
exchange.c Add public API for gettables and settables for keymanagement, signatures and key exchange. 2020-08-12 11:59:43 +10:00
kdf_lib.c Revert "kdf: make function naming consistent." 2020-07-16 14:21:07 +02:00
kdf_meth.c gettables: core changes to pass the provider context. 2020-08-07 08:02:14 +10:00
keymgmt_lib.c EVP: Add the internal convenience function evp_keymgmt_util_export() 2020-09-12 20:24:52 +02:00
keymgmt_meth.c Correctly display the signing/hmac algorithm in the dgst app 2020-09-17 11:12:08 +03:00
legacy_blake2.c
legacy_md2.c
legacy_md4.c
legacy_md5_sha1.c
legacy_md5.c
legacy_mdc2.c
legacy_meth.h
legacy_ripemd.c
legacy_sha.c
legacy_wp.c
m_null.c
m_sigver.c Fix an EVP_MD_CTX leak 2020-09-10 11:35:42 +02:00
mac_lib.c Ensure EVP_MAC_update() passes the length even if it is 0 2020-09-03 09:40:52 +01:00
mac_meth.c gettables: core changes to pass the provider context. 2020-08-07 08:02:14 +10:00
names.c
p5_crpt2.c Add evp_test fixes. 2020-08-07 14:29:00 +10:00
p5_crpt.c PKCS5 PBE: free allocations on unlikely / impossible failure path 2020-09-16 07:22:43 +10:00
p_dec.c
p_enc.c
p_lib.c Add a NULL check to EVP_PKEY_assign 2020-09-17 09:36:52 +02:00
p_open.c
p_seal.c
p_sign.c Add EVP signature with libctx methods. 2020-08-09 17:34:52 +10:00
p_verify.c Add EVP signature with libctx methods. 2020-08-09 17:34:52 +10:00
pbe_scrypt.c Add evp_test fixes. 2020-08-07 14:29:00 +10:00
pmeth_check.c
pmeth_gn.c EVP: Preserve the EVP_PKEY id in a few more spots 2020-09-08 06:25:27 +02:00
pmeth_lib.c Add self tests for rsa encryption 2020-09-16 14:10:23 +10:00
signature.c EVP: Add support for delayed EVP_PKEY operation parameters 2020-09-08 12:06:35 +02:00