|
Lines 45-51
struct ssh_digest {
Link Here
|
| 45 |
/* NB. Indexed directly by algorithm number */ |
45 |
/* NB. Indexed directly by algorithm number */ |
| 46 |
const struct ssh_digest digests[] = { |
46 |
const struct ssh_digest digests[] = { |
| 47 |
{ SSH_DIGEST_MD5, "MD5", 16, EVP_md5 }, |
47 |
{ SSH_DIGEST_MD5, "MD5", 16, EVP_md5 }, |
|
|
48 |
#ifdef HAVE_EVP_RIPEMD160 /* XXX replace with local if missing */ |
| 48 |
{ SSH_DIGEST_RIPEMD160, "RIPEMD160", 20, EVP_ripemd160 }, |
49 |
{ SSH_DIGEST_RIPEMD160, "RIPEMD160", 20, EVP_ripemd160 }, |
|
|
50 |
#endif |
| 49 |
{ SSH_DIGEST_SHA1, "SHA1", 20, EVP_sha1 }, |
51 |
{ SSH_DIGEST_SHA1, "SHA1", 20, EVP_sha1 }, |
| 50 |
#ifdef HAVE_EVP_SHA256 /* XXX replace with local if missing */ |
52 |
#ifdef HAVE_EVP_SHA256 /* XXX replace with local if missing */ |
| 51 |
{ SSH_DIGEST_SHA256, "SHA256", 32, EVP_sha256 }, |
53 |
{ SSH_DIGEST_SHA256, "SHA256", 32, EVP_sha256 }, |