Skip to content

Commit 55163e4

Browse files
committed
[bip151] slightly increase robustness of the re-keying
1 parent 0c8256f commit 55163e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bip-0151.mediawiki

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ If more data is present, another message must be deserialized. There is no expli
148148

149149
A responding peer can inform the requesting peer over a re-keying with a <code>encack</code> message containing 33byte of zeros to indicate that all encrypted message following after this <code>encack</code> message will be encrypted with ''the next symmetric cipher key''.
150150

151-
The new symmetric cipher key will be calculated by <code>SHA256(SHA256(old_symetric_cipher_key))</code>.
151+
The new symmetric cipher key will be calculated by <code>SHA256(SHA256(session_id || old_symmetric_cipher_key))</code>.
152152

153153
Re-Keying interval is a peer policy with a minimum timespan of 10 seconds.
154154

0 commit comments

Comments
 (0)