]> git.bitcoin.ninja Git - rust-lightning/commit
Move cryptographic algorithms and utilities to a new `crypto` mod 2024-01-crypto-module
authorMatt Corallo <git@bluematt.me>
Mon, 15 Jan 2024 01:25:10 +0000 (01:25 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 16 Jan 2024 20:07:08 +0000 (20:07 +0000)
commit4a0abd52e7b9aef8957e30157912ef7b86c5dfc9
treeceb06e07d607e4dcdc912f05f06c64f049bfd921
parent4b70921c958181e43dc056dc05ef59427d13f2af
Move cryptographic algorithms and utilities to a new `crypto` mod

As we'd generally like the `lightning` crate to, over time, have
more modules rather than being very monolithic, we should move the
cryptographic things into their own module, which we do here.

We also take this opportunity to move stream adapters into their
own module and make clear that the ChaChaPoly `decrypt` method is
variable time.
25 files changed:
lightning/src/blinded_path/message.rs
lightning/src/blinded_path/utils.rs
lightning/src/chain/channelmonitor.rs
lightning/src/crypto/chacha20.rs [new file with mode: 0644]
lightning/src/crypto/chacha20poly1305rfc.rs [new file with mode: 0644]
lightning/src/crypto/mod.rs [new file with mode: 0644]
lightning/src/crypto/poly1305.rs [new file with mode: 0644]
lightning/src/crypto/streams.rs [new file with mode: 0644]
lightning/src/crypto/utils.rs [new file with mode: 0644]
lightning/src/lib.rs
lightning/src/ln/chan_utils.rs
lightning/src/ln/inbound_payment.rs
lightning/src/ln/monitor_tests.rs
lightning/src/ln/msgs.rs
lightning/src/ln/onion_utils.rs
lightning/src/ln/peer_channel_encryptor.rs
lightning/src/onion_message/packet.rs
lightning/src/routing/router.rs
lightning/src/sign/mod.rs
lightning/src/util/chacha20.rs [deleted file]
lightning/src/util/chacha20poly1305rfc.rs [deleted file]
lightning/src/util/crypto.rs [deleted file]
lightning/src/util/mod.rs
lightning/src/util/poly1305.rs [deleted file]
lightning/src/util/scid_utils.rs