]> git.bitcoin.ninja Git - rust-lightning/commit
Make `ChaCha20::get_single_block` return a full, single block
authorMatt Corallo <git@bluematt.me>
Tue, 16 Jan 2024 19:53:39 +0000 (19:53 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 2 Oct 2024 19:07:25 +0000 (19:07 +0000)
commit563c01754d39c459b5b03c6e057eef94f0cb0619
tree76f706e62d193b394f983a6a5fbc064b17781612
parent150067fa680bb10deaea7f531c93ef62d0ddba80
Make `ChaCha20::get_single_block` return a full, single block

While the current uses for `ChaCha20::get_single_block` only
actually want 32 bytes, a ChaCha20 block is 64 bytes, and future
uses may want another 32 bytes, so we can go ahead and return the
whole block when asked for one.
lightning/src/crypto/chacha20.rs
lightning/src/sign/mod.rs