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:
4
ssh.h
4
ssh.h
@ -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;
|
||||
|
Reference in New Issue
Block a user