Lines Matching refs:md_data
35 if (ctx->md_data != NULL && ctx->digest->ctx_size > 0 in cleanup_old_md_data()
38 OPENSSL_clear_free(ctx->md_data, ctx->digest->ctx_size); in cleanup_old_md_data()
39 ctx->md_data = NULL; in cleanup_old_md_data()
344 ctx->md_data = OPENSSL_zalloc(type->ctx_size); in evp_md_init_internal()
345 if (ctx->md_data == NULL) in evp_md_init_internal()
493 OPENSSL_cleanse(ctx->md_data, ctx->digest->ctx_size); in EVP_DigestFinal_ex()
546 OPENSSL_cleanse(ctx->md_data, ctx->digest->ctx_size); in EVP_DigestFinalXOF()
679 tmp_buf = out->md_data; in EVP_MD_CTX_copy_ex()
693 out->md_data = NULL; in EVP_MD_CTX_copy_ex()
696 if (in->md_data && out->digest->ctx_size) { in EVP_MD_CTX_copy_ex()
698 out->md_data = tmp_buf; in EVP_MD_CTX_copy_ex()
700 out->md_data = OPENSSL_malloc(out->digest->ctx_size); in EVP_MD_CTX_copy_ex()
701 if (out->md_data == NULL) in EVP_MD_CTX_copy_ex()
704 memcpy(out->md_data, in->md_data, out->digest->ctx_size); in EVP_MD_CTX_copy_ex()