/third_party/openssl/crypto/x509/ |
D | x509_set.c | 165 int X509_SIG_INFO_get(const X509_SIG_INFO *siginf, int *mdnid, int *pknid, in X509_SIG_INFO_get() argument 168 if (mdnid != NULL) in X509_SIG_INFO_get() 169 *mdnid = siginf->mdnid; in X509_SIG_INFO_get() 179 void X509_SIG_INFO_set(X509_SIG_INFO *siginf, int mdnid, int pknid, in X509_SIG_INFO_set() argument 182 siginf->mdnid = mdnid; in X509_SIG_INFO_set() 188 int X509_get_signature_info(X509 *x, int *mdnid, int *pknid, int *secbits, in X509_get_signature_info() argument 192 return X509_SIG_INFO_get(&x->siginf, mdnid, pknid, secbits, flags); in X509_get_signature_info() 199 int pknid, mdnid; in x509_sig_info_init() local 203 siginf->mdnid = NID_undef; in x509_sig_info_init() 207 if (!OBJ_find_sigid_algs(OBJ_obj2nid(alg->algorithm), &mdnid, &pknid) in x509_sig_info_init() [all …]
|
/third_party/node/deps/openssl/openssl/crypto/x509/ |
D | x509_set.c | 165 int X509_SIG_INFO_get(const X509_SIG_INFO *siginf, int *mdnid, int *pknid, in X509_SIG_INFO_get() argument 168 if (mdnid != NULL) in X509_SIG_INFO_get() 169 *mdnid = siginf->mdnid; in X509_SIG_INFO_get() 179 void X509_SIG_INFO_set(X509_SIG_INFO *siginf, int mdnid, int pknid, in X509_SIG_INFO_set() argument 182 siginf->mdnid = mdnid; in X509_SIG_INFO_set() 188 int X509_get_signature_info(X509 *x, int *mdnid, int *pknid, int *secbits, in X509_get_signature_info() argument 192 return X509_SIG_INFO_get(&x->siginf, mdnid, pknid, secbits, flags); in X509_get_signature_info() 199 int pknid, mdnid; in x509_sig_info_init() local 203 siginf->mdnid = NID_undef; in x509_sig_info_init() 207 if (!OBJ_find_sigid_algs(OBJ_obj2nid(alg->algorithm), &mdnid, &pknid) in x509_sig_info_init() [all …]
|
/third_party/openssl/providers/common/ |
D | securitycheck_default.c | 28 int mdnid; in ossl_digest_rsa_sign_get_md_nid() local 39 mdnid = ossl_digest_get_approved_nid_with_sha1(ctx, md, 1); 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()
|
D | securitycheck.c | 230 int mdnid = ossl_digest_get_approved_nid(md); in ossl_digest_get_approved_nid_with_sha1() local 234 if (mdnid == NID_undef || (mdnid == NID_sha1 && !sha1_allowed)) in ossl_digest_get_approved_nid_with_sha1() 235 mdnid = -1; /* disallowed by security checks */ in ossl_digest_get_approved_nid_with_sha1() 238 return mdnid; in ossl_digest_get_approved_nid_with_sha1()
|
/third_party/node/deps/openssl/openssl/providers/common/ |
D | securitycheck_default.c | 28 int mdnid; in ossl_digest_rsa_sign_get_md_nid() local 39 mdnid = ossl_digest_get_approved_nid_with_sha1(ctx, md, 1); 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()
|
D | securitycheck.c | 238 int mdnid = ossl_digest_get_approved_nid(md); in ossl_digest_get_approved_nid_with_sha1() local 242 if (mdnid == NID_undef || (mdnid == NID_sha1 && !sha1_allowed)) in ossl_digest_get_approved_nid_with_sha1() 243 mdnid = -1; /* disallowed by security checks */ in ossl_digest_get_approved_nid_with_sha1() 246 return mdnid; in ossl_digest_get_approved_nid_with_sha1()
|
/third_party/node/deps/openssl/openssl/crypto/asn1/ |
D | a_verify.c | 119 int mdnid, pknid; in ASN1_item_verify_ctx() local 135 if (!OBJ_find_sigid_algs(OBJ_obj2nid(alg->algorithm), &mdnid, &pknid)) { in ASN1_item_verify_ctx() 140 if (mdnid == NID_undef && evp_pkey_is_legacy(pkey)) { in ASN1_item_verify_ctx() 165 if (mdnid == NID_undef && pknid == EVP_PKEY_RSA_PSS) { in ASN1_item_verify_ctx() 182 if (mdnid != NID_undef) { in ASN1_item_verify_ctx() 183 type = EVP_get_digestbynid(mdnid); in ASN1_item_verify_ctx()
|
/third_party/openssl/crypto/asn1/ |
D | a_verify.c | 119 int mdnid, pknid; in ASN1_item_verify_ctx() local 135 if (!OBJ_find_sigid_algs(OBJ_obj2nid(alg->algorithm), &mdnid, &pknid)) { in ASN1_item_verify_ctx() 140 if (mdnid == NID_undef && evp_pkey_is_legacy(pkey)) { in ASN1_item_verify_ctx() 165 if (mdnid == NID_undef && pknid == EVP_PKEY_RSA_PSS) { in ASN1_item_verify_ctx() 182 if (mdnid != NID_undef) { in ASN1_item_verify_ctx() 183 type = EVP_get_digestbynid(mdnid); in ASN1_item_verify_ctx()
|
/third_party/node/deps/openssl/openssl/providers/implementations/signature/ |
D | rsa_sig.c | 93 int mdnid; member 124 int mdnid) in rsa_check_padding() argument 128 if (mdname != NULL || mdnid != NID_undef) { in rsa_check_padding() 134 if (RSA_X931_hash_id(mdnid) == -1) { in rsa_check_padding() 240 ctx->mdnid); in rsa_generate_signature_aid() 250 ctx->mdnid); in rsa_generate_signature_aid() 257 || !ossl_rsa_pss_params_30_set_hashalg(&pss_params, ctx->mdnid) in rsa_generate_signature_aid() 340 ctx->mdnid = md_nid; in rsa_setup_md() 352 int mdnid; in rsa_setup_mgf1_md() local 363 if ((mdnid = ossl_digest_rsa_sign_get_md_nid(ctx->libctx, md, 1)) <= 0 in rsa_setup_mgf1_md() [all …]
|
/third_party/openssl/providers/implementations/signature/ |
D | rsa_sig.c | 93 int mdnid; member 124 int mdnid) in rsa_check_padding() argument 128 if (mdname != NULL || mdnid != NID_undef) { in rsa_check_padding() 134 if (RSA_X931_hash_id(mdnid) == -1) { in rsa_check_padding() 240 ctx->mdnid); in rsa_generate_signature_aid() 250 ctx->mdnid); in rsa_generate_signature_aid() 257 || !ossl_rsa_pss_params_30_set_hashalg(&pss_params, ctx->mdnid) in rsa_generate_signature_aid() 340 ctx->mdnid = md_nid; in rsa_setup_md() 352 int mdnid; in rsa_setup_mgf1_md() local 363 if ((mdnid = ossl_digest_rsa_sign_get_md_nid(ctx->libctx, md, 1)) <= 0 in rsa_setup_mgf1_md() [all …]
|
/third_party/openssl/crypto/rsa/ |
D | rsa_ameth.c | 673 int mdnid, saltlen; in rsa_sig_info_set() local 686 mdnid = EVP_MD_get_type(md); in rsa_sig_info_set() 691 if ((mdnid == NID_sha256 || mdnid == NID_sha384 || mdnid == NID_sha512) in rsa_sig_info_set() 692 && mdnid == EVP_MD_get_type(mgf1md) in rsa_sig_info_set() 709 if (mdnid == NID_sha1) in rsa_sig_info_set() 711 else if (mdnid == NID_md5_sha1) in rsa_sig_info_set() 713 else if (mdnid == NID_md5) in rsa_sig_info_set() 715 X509_SIG_INFO_set(siginf, mdnid, EVP_PKEY_RSA_PSS, secbits, in rsa_sig_info_set() 831 int mdnid = ossl_rsa_pss_params_30_hashalg(&rsa_pss_params); in rsa_int_import_from() local 834 const EVP_MD *md = EVP_get_digestbynid(mdnid); in rsa_int_import_from()
|
/third_party/node/deps/openssl/openssl/crypto/rsa/ |
D | rsa_ameth.c | 705 int mdnid, saltlen; in rsa_sig_info_set() local 718 mdnid = EVP_MD_get_type(md); in rsa_sig_info_set() 723 if ((mdnid == NID_sha256 || mdnid == NID_sha384 || mdnid == NID_sha512) in rsa_sig_info_set() 724 && mdnid == EVP_MD_get_type(mgf1md) in rsa_sig_info_set() 741 if (mdnid == NID_sha1) in rsa_sig_info_set() 743 else if (mdnid == NID_md5_sha1) in rsa_sig_info_set() 745 else if (mdnid == NID_md5) in rsa_sig_info_set() 747 X509_SIG_INFO_set(siginf, mdnid, EVP_PKEY_RSA_PSS, secbits, in rsa_sig_info_set() 863 int mdnid = ossl_rsa_pss_params_30_hashalg(&rsa_pss_params); in rsa_int_import_from() local 866 const EVP_MD *md = EVP_get_digestbynid(mdnid); in rsa_int_import_from()
|
/third_party/node/deps/openssl/openssl/providers/common/der/ |
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()
|
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()
|
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()
|
D | der_rsa_sig.c | 34 int mdnid) in ossl_DER_w_algorithmIdentifier_MDWithRSAEncryption() argument 39 switch (mdnid) { in ossl_DER_w_algorithmIdentifier_MDWithRSAEncryption()
|
/third_party/openssl/providers/common/der/ |
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()
|
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()
|
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()
|
D | der_rsa_sig.c | 34 int mdnid) in ossl_DER_w_algorithmIdentifier_MDWithRSAEncryption() argument 39 switch (mdnid) { in ossl_DER_w_algorithmIdentifier_MDWithRSAEncryption()
|
/third_party/openssl/doc/man3/ |
D | X509_get0_signature.pod | 32 int X509_get_signature_info(X509 *x, int *mdnid, int *pknid, int *secbits, 35 int X509_SIG_INFO_get(const X509_SIG_INFO *siginf, int *mdnid, int *pknid, 37 void X509_SIG_INFO_set(X509_SIG_INFO *siginf, int mdnid, int pknid, 60 certificate B<x>. The NID of the signing digest is written to B<*mdnid>,
|
/third_party/node/deps/openssl/config/archs/BSD-x86/no-asm/providers/common/include/prov/ |
D | der_sm2.h | 37 EC_KEY *ec, int mdnid);
|
/third_party/node/deps/openssl/config/archs/linux32-s390x/asm_avx2/providers/common/include/prov/ |
D | der_sm2.h | 37 EC_KEY *ec, int mdnid);
|
/third_party/node/deps/openssl/config/archs/VC-WIN64A/asm/providers/common/include/prov/ |
D | der_sm2.h | 37 EC_KEY *ec, int mdnid);
|
/third_party/node/deps/openssl/config/archs/linux64-s390x/no-asm/providers/common/include/prov/ |
D | der_sm2.h | 37 EC_KEY *ec, int mdnid);
|