mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
ae84b6197b
This commit implements key rotation for brontide as-per the current draft of the LN p2p crypto spec. Key rotation is currently performed every 1000 messages encrypted/decrypted with a cipherState object. Key rotation is performed by evaluating the HKDF (extracting exactly 64 bytes) with the current chaining key, and cipher key. The key rotation is to attempted after each nonce increment making implementation easy as the current nonce value will already be within the local scope. |
||
---|---|---|
.. | ||
conn.go | ||
listener.go | ||
noise_test.go | ||
noise.go |