You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bip-0151.mediawiki
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,12 +123,14 @@ After a successful <code>encinit</code>/<code>encack</code> interaction from bot
123
123
124
124
Encrypted messages do not have the 4byte network magic.
125
125
126
+
The ciphertext payload length must be included in the AEAD MAC as AAD.
127
+
126
128
The maximum message length needs to be chosen carefully. The 4 byte length field can lead to a required message buffer of 4 GiB.
127
129
Processing the message before the authentication succeeds must not be done.
128
130
129
131
The 4byte sha256 checksum is no longer required because the AEAD.
130
132
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).
133
+
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).
132
134
133
135
The encrypted payload will result decrypted in one or many unencrypted messages:
134
136
@@ -156,7 +158,7 @@ The Re-Keying must be done after every 1GB of data sent or received (recommended
156
158
157
159
=== Risks ===
158
160
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.
161
+
The encryption does not include an identity authentication scheme. This BIP does not cover a proposal to avoid MITM attacks during the encryption initialization.
160
162
161
163
Identity authentication will be covered in another BIP and will presume communication encryption after this BIP.
0 commit comments