mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-19 03:51:02 -05:00
Add more variants of SHAKE.
This adds a ssh_hashalg defining SHAKE256 with a 32-byte output, in addition to the 114-byte output we already have. Also, it defines a new API for using SHAKE128 and SHAKE256 in the more general form of an extendable output function, which is to say that you still have to put in all the input before reading any output, but once you start reading output you can just keep going until you have enough. Both of these will be needed in an upcoming commit implementing ML-KEM.
This commit is contained in:
1
ssh.h
1
ssh.h
@ -1213,6 +1213,7 @@ extern const ssh_hashalg ssh_sha3_224;
|
||||
extern const ssh_hashalg ssh_sha3_256;
|
||||
extern const ssh_hashalg ssh_sha3_384;
|
||||
extern const ssh_hashalg ssh_sha3_512;
|
||||
extern const ssh_hashalg ssh_shake256_32bytes;
|
||||
extern const ssh_hashalg ssh_shake256_114bytes;
|
||||
extern const ssh_hashalg ssh_blake2b;
|
||||
extern const ssh_kexes ssh_diffiehellman_group1;
|
||||
|
Reference in New Issue
Block a user