Lines Matching refs:hash_alg
20 static ESS_CERT_ID_V2 *ESS_CERT_ID_V2_new_init(const EVP_MD *hash_alg,
99 ESS_SIGNING_CERT_V2 *OSSL_ESS_signing_cert_v2_new_init(const EVP_MD *hash_alg, in OSSL_ESS_signing_cert_v2_new_init() argument
111 cid = ESS_CERT_ID_V2_new_init(hash_alg, signcert, set_issuer_serial); in OSSL_ESS_signing_cert_v2_new_init()
121 if ((cid = ESS_CERT_ID_V2_new_init(hash_alg, cert, 1)) == NULL) in OSSL_ESS_signing_cert_v2_new_init()
136 static ESS_CERT_ID_V2 *ESS_CERT_ID_V2_new_init(const EVP_MD *hash_alg, in ESS_CERT_ID_V2_new_init() argument
151 if (!EVP_MD_is_a(hash_alg, SN_sha256)) { in ESS_CERT_ID_V2_new_init()
155 X509_ALGOR_set_md(alg, hash_alg); in ESS_CERT_ID_V2_new_init()
158 cid->hash_alg = alg; in ESS_CERT_ID_V2_new_init()
161 cid->hash_alg = NULL; in ESS_CERT_ID_V2_new_init()
164 if (!X509_digest(cert, hash_alg, hash, &hash_len)) in ESS_CERT_ID_V2_new_init()
236 else if (cid_v2->hash_alg == NULL) in find()
239 OBJ_obj2txt(name, sizeof(name), cid_v2->hash_alg->algorithm, 0); in find()