]> git.bitcoin.ninja Git - rust-lightning/commit
Randomize initial onion packet data. 2019-11-rand-onion
authorMatt Corallo <git@bluematt.me>
Mon, 25 Nov 2019 21:12:45 +0000 (16:12 -0500)
committerMatt Corallo <git@bluematt.me>
Mon, 2 Dec 2019 00:22:44 +0000 (19:22 -0500)
commitfd1d5fd62c748ced131c3c7f8c0d9334c49884cc
tree13a62958fecf4f3c90a5d3e63b71fd18594f9c82
parent1b9bbe547a5537e7a7c0846ee8836a1169cf515f
Randomize initial onion packet data.

This avoids at least the trivial hop count discovery attack, though
other obvious ones remain and are slightly harder to avoid.

See https://github.com/lightningnetwork/lightning-rfc/pull/697
fuzz/fuzz_targets/chanmon_fail_consistency.rs
fuzz/fuzz_targets/full_stack_target.rs
lightning/src/chain/keysinterface.rs
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/onion_utils.rs
lightning/src/util/chacha20.rs
lightning/src/util/test_utils.rs