mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-19 11:57:12 -05:00
Add 'next_message' methods to cipher and MAC vtables.
This provides a convenient hook to be called between SSH messages, for the crypto components to do any per-message processing like incrementing a sequence number.
This commit is contained in:
@ -52,6 +52,7 @@ static inline bool check_availability(const struct aes_extra *extra)
|
||||
.setkey = aes ## impl_c ## _setkey, \
|
||||
.encrypt = aes ## bits ## impl_c ## _cbc_encrypt, \
|
||||
.decrypt = aes ## bits ## impl_c ## _cbc_decrypt, \
|
||||
.next_message = nullcipher_next_message, \
|
||||
.ssh2_id = "aes" #bits "-cbc", \
|
||||
.blksize = 16, \
|
||||
.real_keybits = bits, \
|
||||
@ -69,6 +70,7 @@ static inline bool check_availability(const struct aes_extra *extra)
|
||||
.setkey = aes ## impl_c ## _setkey, \
|
||||
.encrypt = aes ## bits ## impl_c ## _sdctr, \
|
||||
.decrypt = aes ## bits ## impl_c ## _sdctr, \
|
||||
.next_message = nullcipher_next_message, \
|
||||
.ssh2_id = "aes" #bits "-ctr", \
|
||||
.blksize = 16, \
|
||||
.real_keybits = bits, \
|
||||
|
Reference in New Issue
Block a user