mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-04-18 08:51:08 +02:00
This commit modifies the current implementation to more closely match what’s currently specified within the spec. The encrypted+MAC’d packet length is no longer included as the associated data for the encryption/decryption of transport messages. This isn’t required as if an active attacker swaps out the encrypted length in the byte string, the decryption+MAC check will simply fail as the nonce won’t be in proper sequence.