]> git.bitcoin.ninja Git - rust-lightning/commit
Delay adding iv_bytes to MetadataMaterial::hmac
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 23 Jul 2024 18:36:39 +0000 (13:36 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 30 Jul 2024 21:06:24 +0000 (16:06 -0500)
commit8849efe0deeb28ede680b83f0a7f9a6543627bd5
tree1649cbccddbb03b288c26265398bd26461b29fe3
parent4a69f58ff69f2cfc36c1cfb24630c7b7f9d8177b
Delay adding iv_bytes to MetadataMaterial::hmac

In an upcoming commit, the iv_bytes used in MetadataMaterial will vary
depending on when whether a blinded path is included in the
corresponding message. Delay adding into MetadataMaterial::hmac as
otherwise the HmacEngine would need to be re-initialized using an
ExpandedKey, which won't be readily available.
lightning/src/ln/inbound_payment.rs
lightning/src/offers/invoice_request.rs
lightning/src/offers/offer.rs
lightning/src/offers/refund.rs
lightning/src/offers/signer.rs