]> git.bitcoin.ninja Git - rust-lightning/commit
Fuzz test onion messages
authorValentine Wallace <vwallace@protonmail.com>
Sun, 24 Jul 2022 18:47:31 +0000 (14:47 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Tue, 16 Aug 2022 16:12:10 +0000 (12:12 -0400)
commit8424f3f0546144eaaf4f9d2f518e94677804c510
treed6332bb3fd9957b6118bc7d0b6cf6249dccdaf06
parent81b7b03d4ff7424e61b073b81cf4edf627c8694b
Fuzz test onion messages

Also update the fuzz ChaCha20Poly1305 to not mark as finished after a single
encrypt_in_place.  This is because more bytes may still need to be encrypted,
causing us to panic at the assertion that finished == false when we go to
encrypt more.

Also fix unused_mut warning in messenger + add log on OM forward for testing
fuzz/src/bin/gen_target.sh
fuzz/src/bin/onion_message_target.rs [new file with mode: 0644]
fuzz/src/lib.rs
fuzz/src/onion_message.rs [new file with mode: 0644]
fuzz/targets.h
lightning/src/lib.rs
lightning/src/onion_message/messenger.rs
lightning/src/util/chacha20poly1305rfc.rs