Lines Matching refs:md
105 EVP_MD_CTX *md; member
140 ctx->md = EVP_MD_CTX_new(); in ok_new()
141 if (ctx->md == NULL) { in ok_new()
160 EVP_MD_CTX_free(ctx->md); in ok_free()
322 EVP_MD *md; in ok_ctrl() local
386 md = ptr; in ok_ctrl()
387 if (!EVP_DigestInit_ex(ctx->md, md, NULL)) in ok_ctrl()
394 *ppmd = EVP_MD_CTX_get0_md(ctx->md); in ok_ctrl()
435 EVP_MD_CTX *md; in sig_out() local
441 md = ctx->md; in sig_out()
442 digest = EVP_MD_CTX_get0_md(md); in sig_out()
444 md_data = EVP_MD_CTX_get0_md_data(md); in sig_out()
451 if (!EVP_DigestInit_ex(md, digest, NULL)) in sig_out()
463 if (!EVP_DigestUpdate(md, WELLKNOWN, strlen(WELLKNOWN))) in sig_out()
465 if (!EVP_DigestFinal_ex(md, &(ctx->buf[ctx->buf_len]), NULL)) in sig_out()
479 EVP_MD_CTX *md; in sig_in() local
487 if ((md = ctx->md) == NULL) in sig_in()
489 digest = EVP_MD_CTX_get0_md(md); in sig_in()
492 md_data = EVP_MD_CTX_get0_md_data(md); in sig_in()
497 if (!EVP_DigestInit_ex(md, digest, NULL)) in sig_in()
503 if (!EVP_DigestUpdate(md, WELLKNOWN, strlen(WELLKNOWN))) in sig_in()
505 if (!EVP_DigestFinal_ex(md, tmp, NULL)) in sig_in()
529 EVP_MD_CTX *md; in block_out() local
535 md = ctx->md; in block_out()
536 digest = EVP_MD_CTX_get0_md(md); in block_out()
546 if (!EVP_DigestUpdate(md, in block_out()
549 if (!EVP_DigestFinal_ex(md, &(ctx->buf[ctx->buf_len]), NULL)) in block_out()
562 EVP_MD_CTX *md; in block_in() local
568 md = ctx->md; in block_in()
569 md_size = EVP_MD_get_size(EVP_MD_CTX_get0_md(md)); in block_in()
585 if (!EVP_DigestUpdate(md, in block_in()
588 if (!EVP_DigestFinal_ex(md, tmp, NULL)) in block_in()