Skip to content

Commit 0e3f9df

Browse files
authored
Merge pull request bitcoin#426 from chjj/bip151-aadseq
BIP151: Clarifications on sequence numbers.
2 parents 2ac0b47 + 0607a34 commit 0e3f9df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bip-0151.mediawiki

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Processing the message before the authentication succeeds must not be done.
128128

129129
The 4byte sha256 checksum is no longer required because the AEAD.
130130

131-
Both peers need to track the message number (int64) of sent messages to the remote peer for building a symmetric cipher IV. Padding might be required (96bit IVs).
131+
Both peers need to track the message sequence number (uint32) of sent messages to the remote peer for building a 64 bit symmetric cipher IV. Sequence numbers are allowed to overflow to zero after 4294967295 (2^32-1).
132132

133133
The encrypted payload will result decrypted in one or many unencrypted messages:
134134

@@ -156,7 +156,7 @@ The Re-Keying must be done after every 1GB of data sent or received (recommended
156156

157157
=== Risks ===
158158

159-
The encryption does not include an identity authentication scheme. This BIP does not cover a proposal to avoid MITM attacks during the encryption initialization.
159+
The encryption does not include an identity authentication scheme. This BIP does not cover a proposal to avoid MITM attacks during the encryption initialization.
160160

161161
Identity authentication will be covered in another BIP and will presume communication encryption after this BIP.
162162

0 commit comments

Comments
 (0)