Lines Matching refs:md
87 const EVP_MD *md;
105 rctx->md = NULL;
132 dctx->md = sctx->md;
176 if (rctx->md && !(rctx->md->flags & EVP_MD_FLAG_FIPS))
200 if (rctx->md) {
201 if (tbslen != (size_t)EVP_MD_size(rctx->md)) {
208 ret = FIPS_rsa_sign_digest(rsa, tbs, tbslen, rctx->md,
220 if (EVP_MD_type(rctx->md) == NID_mdc2) {
240 rctx->tbuf[tbslen] = RSA_X931_hash_id(EVP_MD_type(rctx->md));
245 ret = RSA_sign(EVP_MD_type(rctx->md),
255 rctx->md, rctx->mgf1md,
278 if (rctx->md) {
288 if (rctx->tbuf[ret] != RSA_X931_hash_id(EVP_MD_type(rctx->md))) {
293 if (ret != EVP_MD_size(rctx->md)) {
302 ret = int_rsa_verify(EVP_MD_type(rctx->md),
335 if (rctx->md) {
340 rctx->md,
348 return RSA_verify(EVP_MD_type(rctx->md), tbs, tbslen,
362 rctx->md, rctx->mgf1md,
413 static int check_padding_md(const EVP_MD *md, int padding)
415 if (!md)
424 if (RSA_X931_hash_id(EVP_MD_type(md)) == -1) {
440 if (!check_padding_md(rctx->md, p1))
446 if (!rctx->md)
447 rctx->md = EVP_sha1();
452 if (!rctx->md)
453 rctx->md = EVP_sha1();
499 rctx->md = p2;
512 *(const EVP_MD **)p2 = rctx->md;