Lines Matching refs:md
58 int plen, const EVP_MD *md, in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex() argument
68 if (md == NULL) { in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
70 md = EVP_sha1(); in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
77 mgf1md = md; in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
81 if (EVP_MD_xof(md)) { in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
91 mdlen = EVP_MD_get_size(md); in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
114 if (!EVP_Digest((void *)param, plen, db, NULL, md, NULL)) in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
154 const EVP_MD *md, const EVP_MD *mgf1md) in RSA_padding_add_PKCS1_OAEP_mgf1() argument
157 param, plen, md, mgf1md); in RSA_padding_add_PKCS1_OAEP_mgf1()
171 int plen, const EVP_MD *md, in RSA_padding_check_PKCS1_OAEP_mgf1() argument
185 if (md == NULL) { in RSA_padding_check_PKCS1_OAEP_mgf1()
187 md = EVP_sha1(); in RSA_padding_check_PKCS1_OAEP_mgf1()
195 mgf1md = md; in RSA_padding_check_PKCS1_OAEP_mgf1()
199 if (EVP_MD_xof(md)) { in RSA_padding_check_PKCS1_OAEP_mgf1()
209 mdlen = EVP_MD_get_size(md); in RSA_padding_check_PKCS1_OAEP_mgf1()
268 if (!EVP_Digest((void *)param, plen, phash, NULL, md, NULL)) in RSA_padding_check_PKCS1_OAEP_mgf1()
356 unsigned char md[EVP_MAX_MD_SIZE]; in PKCS1_MGF1() local
382 if (!EVP_DigestFinal_ex(c, md, NULL)) in PKCS1_MGF1()
384 memcpy(mask + outlen, md, len - outlen); in PKCS1_MGF1()
390 OPENSSL_cleanse(md, sizeof(md)); in PKCS1_MGF1()