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

Expose blocklen in the ssh_hash structure.

Keeping that information alongside the hashes themselves seems more
sensible than having the HMAC code know that fact about everything it
can work with.
This commit is contained in:
Simon Tatham
2019-01-21 19:04:22 +00:00
parent de797aa40e
commit a53559a0dc
6 changed files with 25 additions and 16 deletions

1
ssh.h
View File

@ -665,6 +665,7 @@ struct ssh_hashalg {
void (*final)(ssh_hash *, unsigned char *); /* ALSO FREES THE ssh_hash! */
void (*free)(ssh_hash *);
int hlen; /* output length in bytes */
int blocklen; /* length of the hash's input block, or 0 for N/A */
const char *text_name;
};