/openssl/crypto/evp/ |
H A D | evp_pbe.c | 28 int md_nid; member 104 int ret = 0, cipher_nid, md_nid; in EVP_PBE_CipherInit_ex() local 141 if (md_nid != -1) { in EVP_PBE_CipherInit_ex() 146 md = EVP_get_digestbynid(md_nid); in EVP_PBE_CipherInit_ex() 200 int md_nid, EVP_PBE_KEYGEN *keygen) in EVP_PBE_alg_add_type() argument 218 pbe_tmp->md_nid = md_nid; in EVP_PBE_alg_add_type() 235 int cipher_nid, md_nid; in EVP_PBE_alg_add() local 242 md_nid = EVP_MD_get_type(md); in EVP_PBE_alg_add() 244 md_nid = -1; in EVP_PBE_alg_add() 247 cipher_nid, md_nid, keygen); in EVP_PBE_alg_add() [all …]
|
H A D | digest.c | 1202 int md_nid; member 1226 int md_nid = NID_undef; in ossl_hmac2mdnid() local 1231 md_nid = ossl_hmacmd_pairs[i].md_nid; in ossl_hmac2mdnid() 1236 return md_nid; in ossl_hmac2mdnid() 1239 int ossl_md2hmacnid(int md_nid) in ossl_md2hmacnid() argument 1245 if (ossl_hmacmd_pairs[i].md_nid == md_nid) { in ossl_md2hmacnid()
|
/openssl/crypto/pkcs12/ |
H A D | p12_mutl.c | 173 int md_nid = NID_undef; in pkcs12_gen_mac() local 216 md_nid = EVP_MD_get_type(md); in pkcs12_gen_mac() 226 } else if ((md_nid == NID_id_GostR3411_94 in pkcs12_gen_mac() 227 || md_nid == NID_id_GostR3411_2012_256 in pkcs12_gen_mac() 228 || md_nid == NID_id_GostR3411_2012_512) in pkcs12_gen_mac() 313 int md_nid = NID_undef; in PKCS12_verify_mac() local 321 md_nid = ossl_hmac2mdnid(OBJ_obj2nid(hmac_oid)); in PKCS12_verify_mac() 323 if (!pkcs12_gen_mac(p12, pass, passlen, mac, &maclen, md_nid, NID_undef, NULL)) { in PKCS12_verify_mac()
|
/openssl/test/ |
H A D | ecdsatest.c | 75 int nid, md_nid, ret = 0; in x9_62_tests() local 90 md_nid = ecdsa_cavs_kats[n].md_nid; in x9_62_tests() 107 || !TEST_true(EVP_DigestInit_ex(mctx, EVP_get_digestbynid(md_nid), NULL)) in x9_62_tests()
|
H A D | evp_extra_test2.c | 1399 int cipher_nid = 0, md_nid = 0; in test_evp_pbe_alg_add() local 1408 &cipher_nid, &md_nid, &keygen, &keygen_ex))) in test_evp_pbe_alg_add()
|
H A D | ecdsatest.h | 25 const int md_nid; /* hash function NID */ member
|
/openssl/providers/implementations/signature/ |
H A D | dsa_sig.c | 160 int md_nid; in dsa_setup_md() local 165 md_nid = ossl_digest_get_approved_nid(md); in dsa_setup_md() 167 if (md == NULL || md_nid < 0) { in dsa_setup_md() 171 if (md_nid == NID_undef) in dsa_setup_md() 193 md_nid, sha1_allowed, desc, in dsa_setup_md() 223 md_nid) in dsa_setup_md()
|
H A D | rsa_sig.c | 379 int md_nid; in rsa_setup_md() local 389 md_nid = ossl_digest_rsa_sign_get_md_nid(md); in rsa_setup_md() 390 if (md_nid == NID_undef) { in rsa_setup_md() 414 md_nid, sha1_allowed, desc, in rsa_setup_md() 420 if (!rsa_check_padding(ctx, mdname, NULL, md_nid)) in rsa_setup_md() 444 ctx->mgf1_mdnid = md_nid; in rsa_setup_md() 453 ctx->mdnid = md_nid; in rsa_setup_md() 548 int md_nid = ossl_rsa_pss_params_30_hashalg(pss); in rsa_signverify_init() local 554 mdname = ossl_rsa_oaeppss_nid2name(md_nid); in rsa_signverify_init()
|
H A D | ecdsa_sig.c | 172 int md_nid, md_size; in ecdsa_setup_md() local 199 md_nid = ossl_digest_get_approved_nid(md); in ecdsa_setup_md() 200 if (md_nid == NID_undef) { in ecdsa_setup_md() 220 md_nid, sha1_allowed, desc, in ecdsa_setup_md() 242 md_nid) in ecdsa_setup_md()
|
H A D | sm2_sig.c | 212 int md_nid; in sm2sig_digest_signverify_init() local 227 md_nid = EVP_MD_get_type(ctx->md); in sm2sig_digest_signverify_init() 238 && ossl_DER_w_algorithmIdentifier_SM2_with_MD(&pkt, -1, ctx->ec, md_nid) in sm2sig_digest_signverify_init()
|
/openssl/include/crypto/ |
H A D | sm2.h | 83 const unsigned char *ossl_sm2_algorithmidentifier_encoding(int md_nid,
|
H A D | rsa.h | 117 const unsigned char *ossl_rsa_digestinfo_encoding(int md_nid, size_t *len);
|
/openssl/crypto/rsa/ |
H A D | rsa_sign.c | 166 const unsigned char *ossl_rsa_digestinfo_encoding(int md_nid, size_t *len) in ossl_rsa_digestinfo_encoding() argument 168 switch (md_nid) { in ossl_rsa_digestinfo_encoding()
|
H A D | rsa_backend.c | 597 int md_nid, mgf1md_nid, saltlen, trailerField; in ossl_rsa_sync_to_pss_params_30() local 612 md_nid = EVP_MD_get_type(md); in ossl_rsa_sync_to_pss_params_30() 615 || !ossl_rsa_pss_params_30_set_hashalg(&pss_params, md_nid) in ossl_rsa_sync_to_pss_params_30()
|
H A D | rsa_ameth.c | 819 int md_nid, mgf1md_nid, saltlen, trailerfield; in rsa_int_export_to() local 825 md_nid = EVP_MD_get_type(md); in rsa_int_export_to() 828 || !ossl_rsa_pss_params_30_set_hashalg(&pss_params, md_nid) in rsa_int_export_to()
|
/openssl/crypto/asn1/ |
H A D | asn_mime.c | 163 int i, have_unknown = 0, write_comma, ret = 0, md_nid; in asn1_write_micalg() local 170 md_nid = OBJ_obj2nid(sk_X509_ALGOR_value(mdalgs, i)->algorithm); in asn1_write_micalg() 171 md = EVP_get_digestbynid(md_nid); in asn1_write_micalg() 184 switch (md_nid) { in asn1_write_micalg()
|
/openssl/doc/man3/ |
H A D | EVP_PBE_CipherInit.pod | 25 int md_nid, EVP_PBE_KEYGEN *keygen);
|
/openssl/ssl/ |
H A D | ssl_ciph.c | 2135 int ssl_get_md_idx(int md_nid) { in ssl_get_md_idx() argument 2139 if (md_nid == ssl_cipher_table_mac[i].nid) in ssl_get_md_idx()
|
H A D | ssl_local.h | 2870 int ssl_get_md_idx(int md_nid);
|
/openssl/include/openssl/ |
H A D | evp.h | 1552 int md_nid, EVP_PBE_KEYGEN *keygen);
|