1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-12 16:47:42 -05:00

Rename SSH2_KEX_MAX_HASH_LEN to be more general.

I'm about to want to use it for purposes other than KEX, so it's now
just called MAX_HASH_LEN and is supposed to be an upper bound on any
hash function we implement at all. Of course this makes no difference
to its value, because the largest hash we have is SHA-512 which
already fit inside that limit.
This commit is contained in:
Simon Tatham
2019-01-02 22:00:23 +00:00
parent bcf6f52bf2
commit 38e0a3d22e
3 changed files with 6 additions and 6 deletions

4
ssh.h
View File

@ -859,8 +859,8 @@ struct ssh2_userkey {
char *comment; /* the key comment */
};
/* The maximum length of any hash algorithm used in kex. (bytes) */
#define SSH2_KEX_MAX_HASH_LEN (64) /* SHA-512 */
/* The maximum length of any hash algorithm. (bytes) */
#define MAX_HASH_LEN (64) /* longest is SHA-512 */
extern const struct ssh1_cipheralg ssh1_3des;
extern const struct ssh1_cipheralg ssh1_des;