Lines Matching refs:md_ctx
67 if (!EVP_DigestInit_ex(ctx->md_ctx, md, impl) in HMAC_Init_ex()
68 || !EVP_DigestUpdate(ctx->md_ctx, key, len) in HMAC_Init_ex()
69 || !EVP_DigestFinal_ex(ctx->md_ctx, keytmp, in HMAC_Init_ex()
96 if (!EVP_MD_CTX_copy_ex(ctx->md_ctx, ctx->i_ctx)) in HMAC_Init_ex()
126 return EVP_DigestUpdate(ctx->md_ctx, data, len); in HMAC_Update()
142 if (!EVP_DigestFinal_ex(ctx->md_ctx, buf, &i)) in HMAC_Final()
144 if (!EVP_MD_CTX_copy_ex(ctx->md_ctx, ctx->o_ctx)) in HMAC_Final()
146 if (!EVP_DigestUpdate(ctx->md_ctx, buf, i)) in HMAC_Final()
148 if (!EVP_DigestFinal_ex(ctx->md_ctx, md, len)) in HMAC_Final()
179 EVP_MD_CTX_reset(ctx->md_ctx); in hmac_ctx_cleanup()
193 EVP_MD_CTX_free(ctx->md_ctx); in HMAC_CTX_free()
208 if (ctx->md_ctx == NULL) in hmac_ctx_alloc_mds()
209 ctx->md_ctx = EVP_MD_CTX_new(); in hmac_ctx_alloc_mds()
210 if (ctx->md_ctx == NULL) in hmac_ctx_alloc_mds()
233 if (!EVP_MD_CTX_copy_ex(dctx->md_ctx, sctx->md_ctx)) in HMAC_CTX_copy()
271 EVP_MD_CTX_set_flags(ctx->md_ctx, flags); in HMAC_CTX_set_flags()