mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-14 09:37:34 -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:
@ -110,6 +110,7 @@ const ssh_cipheralg ssh_arcfour128_ssh2 = {
|
||||
.setkey = arcfour_ssh2_setkey,
|
||||
.encrypt = arcfour_ssh2_block,
|
||||
.decrypt = arcfour_ssh2_block,
|
||||
.next_message = nullcipher_next_message,
|
||||
.ssh2_id = "arcfour128",
|
||||
.blksize = 1,
|
||||
.real_keybits = 128,
|
||||
@ -125,6 +126,7 @@ const ssh_cipheralg ssh_arcfour256_ssh2 = {
|
||||
.setkey = arcfour_ssh2_setkey,
|
||||
.encrypt = arcfour_ssh2_block,
|
||||
.decrypt = arcfour_ssh2_block,
|
||||
.next_message = nullcipher_next_message,
|
||||
.ssh2_id = "arcfour256",
|
||||
.blksize = 1,
|
||||
.real_keybits = 256,
|
||||
|
Reference in New Issue
Block a user