]> git.bitcoin.ninja Git - rust-lightning/commit
Add a ChaChaReader adapter to read an encrypted stream & use it
authorMatt Corallo <git@bluematt.me>
Fri, 27 Dec 2019 22:38:15 +0000 (17:38 -0500)
committerMatt Corallo <git@bluematt.me>
Sun, 2 Feb 2020 02:56:38 +0000 (21:56 -0500)
commit8a4939173155c984eb6bdc32285567efb222cf02
tree75928abb00c884b9fc36aa82d6d9362e121bb9d8
parenta166eca0155a507cfcf1387a70be34c0a15184cb
Add a ChaChaReader adapter to read an encrypted stream & use it

This prepares for variable-length per-hop-data by wrapping the full
hop_data field in a decrypting stream, with a few minor
optimizations and redundant allocations to boot.
lightning/src/ln/channelmanager.rs
lightning/src/util/chacha20.rs