From 0c8256f764b895ffe2029e95a7e0166e6b544b32 Mon Sep 17 00:00:00 2001 From: Jonas Schnelli Date: Sun, 7 Aug 2016 22:21:06 +0200 Subject: [bip151] fix typo in HKDF key --- bip-0151.mediawiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bip-0151.mediawiki b/bip-0151.mediawiki index a4c8b8e..11f9614 100644 --- a/bip-0151.mediawiki +++ b/bip-0151.mediawiki @@ -39,7 +39,7 @@ Encryption initialization must happen before sending any other messages to the r The symmetric encryption cipher keys will be calculated with ECDH/HKDF by sharing the pubkeys of a ephemeral key. Once the ECDH secret is calculated on each side, the symmetric encryption cipher keys must be derived with HKDF [2] after the following specification: 1. HKDF extraction -PRK = HKDF_EXTRACT(hash=SHA256, salt="bitcoinechd", ikm=ecdh_secret|cipher-type). +PRK = HKDF_EXTRACT(hash=SHA256, salt="bitcoinecdh", ikm=ecdh_secret|cipher-type). 2. Derive Key1 K_1 = HKDF_EXPAND(prk=PRK, hash=SHA256, info="BitcoinK1", L=32) -- cgit v1.2.3 From 55163e45460d8aab14950724fe7e1b4260dbbada Mon Sep 17 00:00:00 2001 From: Jonas Schnelli Date: Sun, 7 Aug 2016 22:24:37 +0200 Subject: [bip151] slightly increase robustness of the re-keying --- bip-0151.mediawiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bip-0151.mediawiki b/bip-0151.mediawiki index 11f9614..cf221f2 100644 --- a/bip-0151.mediawiki +++ b/bip-0151.mediawiki @@ -148,7 +148,7 @@ If more data is present, another message must be deserialized. There is no expli A responding peer can inform the requesting peer over a re-keying with a encack message containing 33byte of zeros to indicate that all encrypted message following after this encack message will be encrypted with ''the next symmetric cipher key''. -The new symmetric cipher key will be calculated by SHA256(SHA256(old_symetric_cipher_key)). +The new symmetric cipher key will be calculated by SHA256(SHA256(session_id || old_symmetric_cipher_key)). Re-Keying interval is a peer policy with a minimum timespan of 10 seconds. -- cgit v1.2.3