search for: ssh_digest_sha512

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

Did you mean: ssh_digest_sha1
2014 Jul 15
2
missing HAVE_EVP_RIPEMD160 breaks ssh client
...--- a/digest.h +++ b/digest.h @@ -22,13 +22,17 @@ #define SSH_DIGEST_MAX_LENGTH 64 /* Digest algorithms */ -#define SSH_DIGEST_MD5 0 -#define SSH_DIGEST_RIPEMD160 1 -#define SSH_DIGEST_SHA1 2 -#define SSH_DIGEST_SHA256 3 -#define SSH_DIGEST_SHA384 4 -#define SSH_DIGEST_SHA512 5 -#define SSH_DIGEST_MAX 6 +enum ssh_digest_type { + SSH_DIGEST_MD5, +#ifdef HAVE_EVP_RIPEMD160 /* XXX replace with local if missing */ + SSH_DIGEST_RIPEMD160, +#endif + SSH_DIGEST_SHA1, + SSH_DIGEST_SHA256, + SSH_DIGEST_SHA384, + SSH_DIGEST_SHA512,...
2024 Aug 06
1
[PATCH] Add SM3 secure hash algorithm
...st-openssl.c b/digest-openssl.c index e073a807b148..ad958a84c245 100644 --- a/digest-openssl.c +++ b/digest-openssl.c @@ -61,6 +61,7 @@ const struct ssh_digest digests[] = { { SSH_DIGEST_SHA256, "SHA256", 32, EVP_sha256 }, { SSH_DIGEST_SHA384, "SHA384", 48, EVP_sha384 }, { SSH_DIGEST_SHA512, "SHA512", 64, EVP_sha512 }, + { SSH_DIGEST_SM3, "SM3", 32, EVP_sm3 }, { -1, NULL, 0, NULL }, }; diff --git a/digest.h b/digest.h index 274574d0e544..fdee5ab480ee 100644 --- a/digest.h +++ b/digest.h @@ -27,7 +27,8 @@ #define SSH_DIGEST_SHA256 2 #define SSH_DIGEST_SHA...
2024 Aug 07
1
[PATCH] Add SM3 secure hash algorithm
...; index e073a807b148..ad958a84c245 100644 > --- a/digest-openssl.c > +++ b/digest-openssl.c > @@ -61,6 +61,7 @@ const struct ssh_digest digests[] = { > { SSH_DIGEST_SHA256, "SHA256", 32, EVP_sha256 }, > { SSH_DIGEST_SHA384, "SHA384", 48, EVP_sha384 }, > { SSH_DIGEST_SHA512, "SHA512", 64, EVP_sha512 }, > + { SSH_DIGEST_SM3, "SM3", 32, EVP_sm3 }, > { -1, NULL, 0, NULL }, > }; > > diff --git a/digest.h b/digest.h > index 274574d0e544..fdee5ab480ee 100644 > --- a/digest.h > +++ b/digest.h > @@ -27,7 +27,8 @@ > #...