]> 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>
Tue, 11 Feb 2020 18:48:56 +0000 (13:48 -0500)
commitf990aacccbaa58b9cbefad5b002ccec291552d68
tree3b0b942094a392b3ebfe34d3654a1ecf9185a637
parent8f3750304b0e8f53fcf0d32915d289e7453a40a1
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