Lines Matching refs:md
26 const EVP_MD *md, ENGINE *impl) in HMAC_Init_ex() argument
35 if (md != NULL && md != ctx->md && (key == NULL || len < 0)) in HMAC_Init_ex()
38 if (md != NULL) in HMAC_Init_ex()
39 ctx->md = md; in HMAC_Init_ex()
40 else if (ctx->md != NULL) in HMAC_Init_ex()
41 md = ctx->md; in HMAC_Init_ex()
49 if (EVP_MD_xof(md)) in HMAC_Init_ex()
61 j = EVP_MD_get_block_size(md); in HMAC_Init_ex()
67 if (!EVP_DigestInit_ex(ctx->md_ctx, md, impl) in HMAC_Init_ex()
84 if (!EVP_DigestInit_ex(ctx->i_ctx, md, impl) in HMAC_Init_ex()
86 EVP_MD_get_block_size(md))) in HMAC_Init_ex()
91 if (!EVP_DigestInit_ex(ctx->o_ctx, md, impl) in HMAC_Init_ex()
93 EVP_MD_get_block_size(md))) in HMAC_Init_ex()
108 int HMAC_Init(HMAC_CTX *ctx, const void *key, int len, const EVP_MD *md) in HMAC_Init() argument
110 if (key && md) in HMAC_Init()
112 return HMAC_Init_ex(ctx, key, len, md, NULL); in HMAC_Init()
118 if (!ctx->md) in HMAC_Update()
129 int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len) in HMAC_Final() argument
134 if (!ctx->md) in HMAC_Final()
139 return s390x_HMAC_final(ctx, md, len); in HMAC_Final()
148 if (!EVP_DigestFinal_ex(ctx->md_ctx, md, len)) in HMAC_Final()
157 int size = EVP_MD_get_size((ctx)->md); in HMAC_size()
180 ctx->md = NULL; in hmac_ctx_cleanup()
235 dctx->md = sctx->md; in HMAC_CTX_copy()
250 unsigned char *md, unsigned int *md_len) in HMAC() argument
260 md == NULL ? static_md : md, size, &temp_md_len); in HMAC()
276 return ctx->md; in HMAC_CTX_get_md()