Lines Matching refs:alg
81 static X509_ALGOR *rsa_mgf1_decode(X509_ALGOR *alg) {
82 if (alg == NULL || alg->parameter == NULL ||
83 OBJ_obj2nid(alg->algorithm) != NID_mgf1 ||
84 alg->parameter->type != V_ASN1_SEQUENCE) {
88 const uint8_t *p = alg->parameter->value.sequence->data;
89 int plen = alg->parameter->value.sequence->length;
93 static RSA_PSS_PARAMS *rsa_pss_decode(const X509_ALGOR *alg, in rsa_pss_decode() argument
97 if (alg->parameter == NULL || alg->parameter->type != V_ASN1_SEQUENCE) { in rsa_pss_decode()
101 const uint8_t *p = alg->parameter->value.sequence->data; in rsa_pss_decode()
102 int plen = alg->parameter->value.sequence->length; in rsa_pss_decode()
157 static const EVP_MD *rsa_algor_to_md(X509_ALGOR *alg) { in rsa_algor_to_md() argument
159 if (!alg) { in rsa_algor_to_md()
162 md = EVP_get_digestbyobj(alg->algorithm); in rsa_algor_to_md()
170 static const EVP_MD *rsa_mgf1_to_md(X509_ALGOR *alg, X509_ALGOR *maskHash) { in rsa_mgf1_to_md() argument
172 if (!alg) { in rsa_mgf1_to_md()
176 if (OBJ_obj2nid(alg->algorithm) != NID_mgf1 || in rsa_mgf1_to_md()