Lines Matching refs:digest
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()
118 if (in == NULL || in->digest == NULL) { in EVP_MD_CTX_copy_ex()
123 if (out->digest == in->digest) { in EVP_MD_CTX_copy_ex()
133 out->digest = in->digest; in EVP_MD_CTX_copy_ex()
134 if (in->md_data && in->digest->ctx_size) { in EVP_MD_CTX_copy_ex()
138 out->md_data = OPENSSL_malloc(in->digest->ctx_size); in EVP_MD_CTX_copy_ex()
144 memcpy(out->md_data, in->md_data, in->digest->ctx_size); in EVP_MD_CTX_copy_ex()
166 if (ctx->digest != type) { in EVP_DigestInit_ex()
167 if (ctx->digest && ctx->digest->ctx_size > 0) { in EVP_DigestInit_ex()
170 ctx->digest = type; in EVP_DigestInit_ex()
182 ctx->digest->init(ctx); in EVP_DigestInit_ex()
192 ctx->digest->update(ctx, data, len); in EVP_DigestUpdate()
197 assert(ctx->digest->md_size <= EVP_MAX_MD_SIZE); in EVP_DigestFinal_ex()
198 ctx->digest->final(ctx, md_out); in EVP_DigestFinal_ex()
200 *size = ctx->digest->md_size; in EVP_DigestFinal_ex()
202 OPENSSL_cleanse(ctx->md_data, ctx->digest->ctx_size); in EVP_DigestFinal_ex()
231 return ctx->digest; in EVP_MD_CTX_md()
246 int EVP_add_digest(const EVP_MD *digest) { in EVP_add_digest() argument