• Home
  • Raw
  • Download

Lines Matching refs:digest

149 	if (ctx->engine && ctx->digest && (!type ||  in EVP_DigestInit_ex()
150 (type && (type->type == ctx->digest->type)))) in EVP_DigestInit_ex()
192 if(!ctx->digest) in EVP_DigestInit_ex()
198 if (ctx->digest != type) in EVP_DigestInit_ex()
200 if (ctx->digest && ctx->digest->ctx_size) in EVP_DigestInit_ex()
202 ctx->digest=type; in EVP_DigestInit_ex()
228 return ctx->digest->init(ctx); in EVP_DigestInit_ex()
250 OPENSSL_assert(ctx->digest->md_size <= EVP_MAX_MD_SIZE); in EVP_DigestFinal_ex()
251 ret=ctx->digest->final(ctx,md); in EVP_DigestFinal_ex()
253 *size=ctx->digest->md_size; in EVP_DigestFinal_ex()
254 if (ctx->digest->cleanup) in EVP_DigestFinal_ex()
256 ctx->digest->cleanup(ctx); in EVP_DigestFinal_ex()
259 memset(ctx->md_data,0,ctx->digest->ctx_size); in EVP_DigestFinal_ex()
272 if ((in == NULL) || (in->digest == NULL)) in EVP_MD_CTX_copy_ex()
286 if (out->digest == in->digest) in EVP_MD_CTX_copy_ex()
295 if (in->md_data && out->digest->ctx_size) in EVP_MD_CTX_copy_ex()
301 out->md_data=OPENSSL_malloc(out->digest->ctx_size); in EVP_MD_CTX_copy_ex()
308 memcpy(out->md_data,in->md_data,out->digest->ctx_size); in EVP_MD_CTX_copy_ex()
323 if (out->digest->copy) in EVP_MD_CTX_copy_ex()
324 return out->digest->copy(out,in); in EVP_MD_CTX_copy_ex()
357 if (ctx->digest && ctx->digest->cleanup in EVP_MD_CTX_cleanup()
359 ctx->digest->cleanup(ctx); in EVP_MD_CTX_cleanup()
360 if (ctx->digest && ctx->digest->ctx_size && ctx->md_data in EVP_MD_CTX_cleanup()
363 OPENSSL_cleanse(ctx->md_data,ctx->digest->ctx_size); in EVP_MD_CTX_cleanup()