Lines Matching refs:md_data
91 if (ctx->digest && ctx->digest->ctx_size && ctx->md_data) { in EVP_MD_CTX_cleanup()
92 OPENSSL_cleanse(ctx->md_data, ctx->digest->ctx_size); in EVP_MD_CTX_cleanup()
93 OPENSSL_free(ctx->md_data); in EVP_MD_CTX_cleanup()
127 tmp_buf = out->md_data; in EVP_MD_CTX_copy_ex()
128 out->md_data = NULL; in EVP_MD_CTX_copy_ex()
134 if (in->md_data && in->digest->ctx_size) { in EVP_MD_CTX_copy_ex()
136 out->md_data = tmp_buf; in EVP_MD_CTX_copy_ex()
138 out->md_data = OPENSSL_malloc(in->digest->ctx_size); in EVP_MD_CTX_copy_ex()
139 if (!out->md_data) { in EVP_MD_CTX_copy_ex()
144 memcpy(out->md_data, in->md_data, in->digest->ctx_size); in EVP_MD_CTX_copy_ex()
168 OPENSSL_free(ctx->md_data); in EVP_DigestInit_ex()
172 ctx->md_data = OPENSSL_malloc(type->ctx_size); in EVP_DigestInit_ex()
173 if (ctx->md_data == NULL) { in EVP_DigestInit_ex()
202 OPENSSL_cleanse(ctx->md_data, ctx->digest->ctx_size); in EVP_DigestFinal_ex()