chacha20poly1305: enable simultaneous writing+encryption
authorValentine Wallace <vwallace@protonmail.com>
Tue, 14 Jun 2022 20:13:34 +0000 (16:13 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Tue, 21 Jun 2022 19:09:25 +0000 (15:09 -0400)
commit945cec3027cb88edd506123ca0995a8aeac9ebe9
tree8d533800828e0574f447a756489c70579ec09b0b
parent7bd8f8cadb8eceb4d92ce4a211fa5a341ca97fff
chacha20poly1305: enable simultaneous writing+encryption

In the upcoming onion messages PR, this will allow us to avoid encoding onion
message encrypted data into an intermediate Vec before encrypting it.  Instead
we encode and encrypt at the same time using this new ChaChaPolyWriteAdapter object.
lightning/src/util/chacha20poly1305rfc.rs