search for: ssh_digest_md5

Displaying 3 results from an estimated 3 matches for "ssh_digest_md5".

2014 Jul 15
2
missing HAVE_EVP_RIPEMD160 breaks ssh client
...s that ssh_digest_by_alg() couldn't verify alg with an index bigger than 1 since the line with SSH_DIGEST_RIPEMD160 wasn't compiled in and all indexes in the ssh_digest digests array was lowered by one. /* NB. Indexed directly by algorithm number */ const struct ssh_digest digests[] = { { SSH_DIGEST_MD5, "MD5", 16, EVP_md5 }, #ifdef HAVE_EVP_RIPEMD160 /* XXX replace with local if missing */ { SSH_DIGEST_RIPEMD160, "RIPEMD160", 20, EVP_ripemd160 }, #endif { SSH_DIGEST_SHA1, "SHA1", 20, EVP_sha1 }, ... Would it be worth to use enum instead of defined constants f...
2024 Aug 06
1
[PATCH] Add SM3 secure hash algorithm
...t sshbuf; struct ssh_digest_ctx; diff --git a/mac.c b/mac.c index f3dda6692866..dfa02fa0723a 100644 --- a/mac.c +++ b/mac.c @@ -63,6 +63,7 @@ static const struct macalg macs[] = { { "hmac-sha2-512", SSH_DIGEST, SSH_DIGEST_SHA512, 0, 0, 0, 0 }, { "hmac-md5", SSH_DIGEST, SSH_DIGEST_MD5, 0, 0, 0, 0 }, { "hmac-md5-96", SSH_DIGEST, SSH_DIGEST_MD5, 96, 0, 0, 0 }, + { "hmac-sm3", SSH_DIGEST, SSH_DIGEST_SM3, 0, 0, 0, 0 }, { "umac-64 at openssh.com", SSH_UMAC, 0, 0, 128, 64, 0 }, { "umac-128 at openssh.com", SSH_UMAC128, 0, 0, 128, 12...
2024 Aug 07
1
[PATCH] Add SM3 secure hash algorithm
...gt; diff --git a/mac.c b/mac.c > index f3dda6692866..dfa02fa0723a 100644 > --- a/mac.c > +++ b/mac.c > @@ -63,6 +63,7 @@ static const struct macalg macs[] = { > { "hmac-sha2-512", SSH_DIGEST, SSH_DIGEST_SHA512, 0, 0, 0, 0 }, > { "hmac-md5", SSH_DIGEST, SSH_DIGEST_MD5, 0, 0, 0, 0 }, > { "hmac-md5-96", SSH_DIGEST, SSH_DIGEST_MD5, 96, 0, 0, 0 }, > + { "hmac-sm3", SSH_DIGEST, SSH_DIGEST_SM3, 0, 0, 0, 0 }, > { "umac-64 at openssh.com", SSH_UMAC, 0, 0, 128, 64, 0 }, > { "umac-128 at openssh.com", SSH_UM...