Searched refs:mdctx (Results 1 – 3 of 3) sorted by relevance
/external/openssh/ |
D | digest-libc.c | 39 typedef void md_init_fn(void *mdctx); 40 typedef void md_update_fn(void *mdctx, const u_int8_t *m, size_t mlen); 41 typedef void md_final_fn(u_int8_t[], void *mdctx); 45 void *mdctx; member 177 if ((ret->mdctx = calloc(1, digest->ctx_len)) == NULL) { in ssh_digest_start() 182 digest->md_init(ret->mdctx); in ssh_digest_start() 193 memcpy(to->mdctx, from->mdctx, digest->ctx_len); in ssh_digest_copy_state() 204 digest->md_update(ctx->mdctx, m, mlen); in ssh_digest_update() 225 digest->md_final(d, ctx->mdctx); in ssh_digest_final() 237 explicit_bzero(ctx->mdctx, digest->ctx_len); in ssh_digest_free() [all …]
|
D | digest-openssl.c | 46 EVP_MD_CTX mdctx; member 110 return EVP_MD_CTX_block_size(&ctx->mdctx); in ssh_digest_blocksize() 122 EVP_MD_CTX_init(&ret->mdctx); in ssh_digest_start() 123 if (EVP_DigestInit_ex(&ret->mdctx, digest->mdfunc(), NULL) != 1) { in ssh_digest_start() 136 if (!EVP_MD_CTX_copy_ex(&to->mdctx, &from->mdctx)) in ssh_digest_copy_state() 144 if (EVP_DigestUpdate(&ctx->mdctx, m, mlen) != 1) in ssh_digest_update() 165 if (EVP_DigestFinal_ex(&ctx->mdctx, d, &l) != 1) in ssh_digest_final() 176 EVP_MD_CTX_cleanup(&ctx->mdctx); in ssh_digest_free()
|
/external/curl/lib/vtls/ |
D | openssl.c | 3854 EVP_MD_CTX *mdctx; in Curl_ossl_md5sum() local 3858 mdctx = EVP_MD_CTX_create(); in Curl_ossl_md5sum() 3859 EVP_DigestInit_ex(mdctx, EVP_md5(), NULL); in Curl_ossl_md5sum() 3860 EVP_DigestUpdate(mdctx, tmp, tmplen); in Curl_ossl_md5sum() 3861 EVP_DigestFinal_ex(mdctx, md5sum, &len); in Curl_ossl_md5sum() 3862 EVP_MD_CTX_destroy(mdctx); in Curl_ossl_md5sum() 3872 EVP_MD_CTX *mdctx; in Curl_ossl_sha256sum() local 3876 mdctx = EVP_MD_CTX_create(); in Curl_ossl_sha256sum() 3877 EVP_DigestInit_ex(mdctx, EVP_sha256(), NULL); in Curl_ossl_sha256sum() 3878 EVP_DigestUpdate(mdctx, tmp, tmplen); in Curl_ossl_sha256sum() [all …]
|