/openssl/crypto/x509/ |
H A D | x509_set.c | 184 if (mdnid != NULL) in X509_SIG_INFO_get() 185 *mdnid = siginf->mdnid; in X509_SIG_INFO_get() 195 void X509_SIG_INFO_set(X509_SIG_INFO *siginf, int mdnid, int pknid, in X509_SIG_INFO_set() argument 198 siginf->mdnid = mdnid; in X509_SIG_INFO_set() 208 return X509_SIG_INFO_get(&x->siginf, mdnid, pknid, secbits, flags); in X509_get_signature_info() 215 int pknid, mdnid, md_size; in x509_sig_info_init() local 219 siginf->mdnid = NID_undef; in x509_sig_info_init() 228 siginf->mdnid = mdnid; in x509_sig_info_init() 231 switch (mdnid) { in x509_sig_info_init() 278 if ((md = EVP_get_digestbynid(mdnid)) == NULL) { in x509_sig_info_init() [all …]
|
H A D | x_all.c | 521 int mdnid, pknid; in X509_digest_sig() local 536 if (!OBJ_find_sigid_algs(X509_get_signature_nid(cert), &mdnid, &pknid)) { in X509_digest_sig() 541 if (mdnid == NID_undef) { in X509_digest_sig() 585 } else if ((md = EVP_MD_fetch(cert->libctx, OBJ_nid2sn(mdnid), in X509_digest_sig() 587 && (md = (EVP_MD *)EVP_get_digestbynid(mdnid)) == NULL) { in X509_digest_sig()
|
/openssl/providers/common/ |
H A D | securitycheck_default.c | 27 int mdnid; in ossl_digest_rsa_sign_get_md_nid() local 39 mdnid = ossl_digest_get_approved_nid(md); in ossl_digest_rsa_sign_get_md_nid() 40 if (mdnid == NID_undef) in ossl_digest_rsa_sign_get_md_nid() 41 mdnid = ossl_digest_md_to_nid(md, name_to_nid, OSSL_NELEM(name_to_nid)); in ossl_digest_rsa_sign_get_md_nid() 42 return mdnid; in ossl_digest_rsa_sign_get_md_nid()
|
/openssl/crypto/asn1/ |
H A D | a_verify.c | 117 int mdnid, pknid; in ASN1_item_verify_ctx() local 133 if (!OBJ_find_sigid_algs(OBJ_obj2nid(alg->algorithm), &mdnid, &pknid)) { in ASN1_item_verify_ctx() 138 if (mdnid == NID_undef && evp_pkey_is_legacy(pkey)) { in ASN1_item_verify_ctx() 163 if (mdnid == NID_undef && pknid == EVP_PKEY_RSA_PSS) { in ASN1_item_verify_ctx() 180 if (mdnid != NID_undef) { in ASN1_item_verify_ctx() 181 type = EVP_get_digestbynid(mdnid); in ASN1_item_verify_ctx() 185 "nid=0x%x", mdnid); in ASN1_item_verify_ctx()
|
/openssl/providers/common/der/ |
H A D | der_sm2_sig.c | 24 EC_KEY *ec, int mdnid) in ossl_DER_w_algorithmIdentifier_SM2_with_MD() argument 29 switch (mdnid) { in ossl_DER_w_algorithmIdentifier_SM2_with_MD()
|
H A D | der_dsa_sig.c | 27 DSA *dsa, int mdnid) in ossl_DER_w_algorithmIdentifier_DSA_with_MD() argument 32 switch (mdnid) { in ossl_DER_w_algorithmIdentifier_DSA_with_MD()
|
H A D | der_ec_sig.c | 28 EC_KEY *ec, int mdnid) in ossl_DER_w_algorithmIdentifier_ECDSA_with_MD() argument 33 switch (mdnid) { in ossl_DER_w_algorithmIdentifier_ECDSA_with_MD()
|
H A D | der_rsa_sig.c | 34 int mdnid) in ossl_DER_w_algorithmIdentifier_MDWithRSAEncryption() argument 39 switch (mdnid) { in ossl_DER_w_algorithmIdentifier_MDWithRSAEncryption()
|
/openssl/crypto/rsa/ |
H A D | rsa_ameth.c | 726 int mdnid, saltlen, md_size; in rsa_sig_info_set() local 742 mdnid = EVP_MD_get_type(md); in rsa_sig_info_set() 747 if ((mdnid == NID_sha256 || mdnid == NID_sha384 || mdnid == NID_sha512) in rsa_sig_info_set() 748 && mdnid == EVP_MD_get_type(mgf1md) in rsa_sig_info_set() 765 if (mdnid == NID_sha1) in rsa_sig_info_set() 767 else if (mdnid == NID_md5_sha1) in rsa_sig_info_set() 769 else if (mdnid == NID_md5) in rsa_sig_info_set() 771 X509_SIG_INFO_set(siginf, mdnid, EVP_PKEY_RSA_PSS, secbits, in rsa_sig_info_set() 887 int mdnid = ossl_rsa_pss_params_30_hashalg(&rsa_pss_params); in rsa_int_import_from() local 890 const EVP_MD *md = EVP_get_digestbynid(mdnid); in rsa_int_import_from()
|
H A D | rsa_pmeth.c | 400 int mdnid; in check_padding_md() local 405 mdnid = EVP_MD_get_type(md); in check_padding_md() 413 if (RSA_X931_hash_id(mdnid) == -1) { in check_padding_md() 418 switch (mdnid) { in check_padding_md()
|
/openssl/providers/implementations/signature/ |
H A D | rsa_sig.c | 127 int mdnid; member 178 int mdnid) in rsa_check_padding() argument 182 if (mdname != NULL || mdnid != NID_undef) { in rsa_check_padding() 188 if (RSA_X931_hash_id(mdnid) == -1) { in rsa_check_padding() 337 ctx->mdnid); in rsa_generate_signature_aid() 453 ctx->mdnid = md_nid; in rsa_setup_md() 468 int mdnid; in rsa_setup_mgf1_md() local 479 if ((mdnid = ossl_digest_rsa_sign_get_md_nid(md)) <= 0 in rsa_setup_mgf1_md() 480 || !rsa_check_padding(ctx, NULL, mdname, mdnid)) { in rsa_setup_mgf1_md() 481 if (mdnid <= 0) in rsa_setup_mgf1_md() [all …]
|
/openssl/doc/man3/ |
H A D | X509_get0_signature.pod | 36 int X509_get_signature_info(X509 *x, int *mdnid, int *pknid, int *secbits, 39 int X509_SIG_INFO_get(const X509_SIG_INFO *siginf, int *mdnid, int *pknid, 41 void X509_SIG_INFO_set(X509_SIG_INFO *siginf, int mdnid, int pknid, 74 certificate B<x>. The NID of the signing digest is written to B<*mdnid>,
|
/openssl/providers/common/include/prov/ |
H A D | der_sm2.h.in | 26 EC_KEY *ec, int mdnid);
|
H A D | der_ec.h.in | 26 EC_KEY *ec, int mdnid);
|
H A D | der_dsa.h.in | 25 DSA *dsa, int mdnid);
|
H A D | der_rsa.h.in | 33 int mdnid);
|
/openssl/include/crypto/ |
H A D | x509.h | 52 int mdnid; member
|
H A D | evp.h | 968 int ossl_md2hmacnid(int mdnid);
|
/openssl/test/ |
H A D | ssl_old_test.c | 783 int mdnid; in print_details() local 806 if (SSL_get_peer_signature_nid(c_ssl, &mdnid)) in print_details() 807 BIO_printf(bio_stdout, ", digest=%s", OBJ_nid2sn(mdnid)); in print_details()
|
/openssl/include/openssl/ |
H A D | x509.h.in | 584 int X509_SIG_INFO_get(const X509_SIG_INFO *siginf, int *mdnid, int *pknid, 586 void X509_SIG_INFO_set(X509_SIG_INFO *siginf, int mdnid, int pknid, 589 int X509_get_signature_info(X509 *x, int *mdnid, int *pknid, int *secbits,
|
/openssl/ssl/ |
H A D | t1_lib.c | 3747 int mdnid, pknid, supported; in check_cert_usable() local 3769 if (!X509_get_signature_info(x, &mdnid, &pknid, NULL, NULL)) in check_cert_usable() 3782 if (mdnid == lu->hash && pknid == lu->sig) in check_cert_usable()
|