1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-19 03:51:02 -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

View File

@ -252,7 +252,7 @@ static void sha256_final(ssh_hash *hash, unsigned char *output)
}
const ssh_hashalg ssh_sha256 = {
sha256_new, sha256_copy, sha256_final, sha256_free, 32, "SHA-256"
sha256_new, sha256_copy, sha256_final, sha256_free, 32, 64, "SHA-256"
};
#ifdef COMPILER_SUPPORTS_SHA_NI