search for: ssh_digest_fin

Displaying 1 result from an estimated 1 matches for "ssh_digest_fin".

Did you mean: ssh_digest_final
2014 Apr 05
0
[PATCH] Use EVP_Digest
...t mlen, u_char *d, size_t dlen) { - struct ssh_digest_ctx *ctx = ssh_digest_start(alg); + const struct ssh_digest *digest = ssh_digest_by_alg(alg); - if (ctx == NULL) + if (!EVP_Digest(m, mlen, d, dlen, digest->mdfunc(), NULL)) return -1; - if (ssh_digest_update(ctx, m, mlen) != 0 || - ssh_digest_final(ctx, d, dlen) != 0) - return -1; - ssh_digest_free(ctx); + return 0; }