1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-09 23:33:46 -05:00

Implement the SHA-3 family.

These aren't used _directly_ by SSH at present, but an instance of
SHAKE-256 is required by the recently standardised Ed448.
This commit is contained in:
Simon Tatham
2020-03-02 06:55:48 +00:00
parent 31e5b621b5
commit b8a08f9321
6 changed files with 353 additions and 2 deletions

View File

@ -216,6 +216,11 @@ static const ssh_hashalg *get_hashalg(BinarySource *in)
{"sha256_hw", &ssh_sha256_hw},
{"sha384", &ssh_sha384},
{"sha512", &ssh_sha512},
{"sha3_224", &ssh_sha3_224},
{"sha3_256", &ssh_sha3_256},
{"sha3_384", &ssh_sha3_384},
{"sha3_512", &ssh_sha3_512},
{"shake256_114bytes", &ssh_shake256_114bytes},
};
ptrlen name = get_word(in);