diff options
Diffstat (limited to 'PROTOCOL')
-rw-r--r-- | PROTOCOL | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -70,9 +70,10 @@ verified without decrypting unauthenticated data. | |||
70 | 70 | ||
71 | As such, the MAC covers: | 71 | As such, the MAC covers: |
72 | 72 | ||
73 | mac = MAC(key, sequence_number || encrypted_packet) | 73 | mac = MAC(key, sequence_number || packet_length || encrypted_packet) |
74 | 74 | ||
75 | where "encrypted_packet" contains: | 75 | where "packet_length" is encoded as a uint32 and "encrypted_packet" |
76 | contains: | ||
76 | 77 | ||
77 | byte padding_length | 78 | byte padding_length |
78 | byte[n1] payload; n1 = packet_length - padding_length - 1 | 79 | byte[n1] payload; n1 = packet_length - padding_length - 1 |
@@ -318,4 +319,4 @@ link(oldpath, newpath) and will respond with a SSH_FXP_STATUS message. | |||
318 | This extension is advertised in the SSH_FXP_VERSION hello with version | 319 | This extension is advertised in the SSH_FXP_VERSION hello with version |
319 | "1". | 320 | "1". |
320 | 321 | ||
321 | $OpenBSD: PROTOCOL,v 1.18 2012/12/11 22:31:18 markus Exp $ | 322 | $OpenBSD: PROTOCOL,v 1.19 2013/01/03 12:49:01 djm Exp $ |