Lines Matching refs:mdctx
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()
238 free(ctx->mdctx); in ssh_digest_free()