mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-13 00:57:33 -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:
@ -167,6 +167,7 @@ const ssh2_macalg ssh_hmac_sha256 = {
|
||||
.setkey = hmac_key,
|
||||
.start = hmac_start,
|
||||
.genresult = hmac_genresult,
|
||||
.next_message = nullmac_next_message,
|
||||
.text_name = hmac_text_name,
|
||||
.name = "hmac-sha2-256",
|
||||
.etm_name = "hmac-sha2-256-etm@openssh.com",
|
||||
@ -182,6 +183,7 @@ const ssh2_macalg ssh_hmac_md5 = {
|
||||
.setkey = hmac_key,
|
||||
.start = hmac_start,
|
||||
.genresult = hmac_genresult,
|
||||
.next_message = nullmac_next_message,
|
||||
.text_name = hmac_text_name,
|
||||
.name = "hmac-md5",
|
||||
.etm_name = "hmac-md5-etm@openssh.com",
|
||||
@ -198,6 +200,7 @@ const ssh2_macalg ssh_hmac_sha1 = {
|
||||
.setkey = hmac_key,
|
||||
.start = hmac_start,
|
||||
.genresult = hmac_genresult,
|
||||
.next_message = nullmac_next_message,
|
||||
.text_name = hmac_text_name,
|
||||
.name = "hmac-sha1",
|
||||
.etm_name = "hmac-sha1-etm@openssh.com",
|
||||
@ -214,6 +217,7 @@ const ssh2_macalg ssh_hmac_sha1_96 = {
|
||||
.setkey = hmac_key,
|
||||
.start = hmac_start,
|
||||
.genresult = hmac_genresult,
|
||||
.next_message = nullmac_next_message,
|
||||
.text_name = hmac_text_name,
|
||||
.name = "hmac-sha1-96",
|
||||
.etm_name = "hmac-sha1-96-etm@openssh.com",
|
||||
@ -232,6 +236,7 @@ const ssh2_macalg ssh_hmac_sha1_buggy = {
|
||||
.setkey = hmac_key,
|
||||
.start = hmac_start,
|
||||
.genresult = hmac_genresult,
|
||||
.next_message = nullmac_next_message,
|
||||
.text_name = hmac_text_name,
|
||||
.name = "hmac-sha1",
|
||||
.len = 20,
|
||||
@ -249,6 +254,7 @@ const ssh2_macalg ssh_hmac_sha1_96_buggy = {
|
||||
.setkey = hmac_key,
|
||||
.start = hmac_start,
|
||||
.genresult = hmac_genresult,
|
||||
.next_message = nullmac_next_message,
|
||||
.text_name = hmac_text_name,
|
||||
.name = "hmac-sha1-96",
|
||||
.len = 12,
|
||||
|
Reference in New Issue
Block a user