Home
last modified time | relevance | path

Searched refs:mdnid (Results 1 – 21 of 21) sorted by relevance

/openssl/crypto/x509/
H A Dx509_set.c184 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 Dx_all.c521 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 Dsecuritycheck_default.c27 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 Da_verify.c117 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 Dder_sm2_sig.c24 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 Dder_dsa_sig.c27 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 Dder_ec_sig.c28 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 Dder_rsa_sig.c34 int mdnid) in ossl_DER_w_algorithmIdentifier_MDWithRSAEncryption() argument
39 switch (mdnid) { in ossl_DER_w_algorithmIdentifier_MDWithRSAEncryption()
/openssl/crypto/rsa/
H A Drsa_ameth.c726 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 Drsa_pmeth.c400 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 Drsa_sig.c127 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 DX509_get0_signature.pod36 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 Dder_sm2.h.in26 EC_KEY *ec, int mdnid);
H A Dder_ec.h.in26 EC_KEY *ec, int mdnid);
H A Dder_dsa.h.in25 DSA *dsa, int mdnid);
H A Dder_rsa.h.in33 int mdnid);
/openssl/include/crypto/
H A Dx509.h52 int mdnid; member
H A Devp.h968 int ossl_md2hmacnid(int mdnid);
/openssl/test/
H A Dssl_old_test.c783 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 Dx509.h.in584 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 Dt1_lib.c3747 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()

Completed in 62 milliseconds