projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Convert remaining channel inner structs and enums to TLV-based ser
[rust-lightning]
/
lightning
/
src
/
util
/
chacha20poly1305rfc.rs
diff --git
a/lightning/src/util/chacha20poly1305rfc.rs
b/lightning/src/util/chacha20poly1305rfc.rs
index 41a218bd58890833fb9ee3a5cfae88ba1453fe1c..3908116cccc85f03624c73cdb73d2ead507f0712 100644
(file)
--- a/
lightning/src/util/chacha20poly1305rfc.rs
+++ b/
lightning/src/util/chacha20poly1305rfc.rs
@@
-51,8
+51,8
@@
mod real_chachapoly {
ChaCha20Poly1305RFC::pad_mac_16(&mut mac, aad.len());
ChaCha20Poly1305RFC {
ChaCha20Poly1305RFC::pad_mac_16(&mut mac, aad.len());
ChaCha20Poly1305RFC {
- cipher
: cipher
,
- mac
: mac
,
+ cipher,
+ mac,
finished: false,
data_len: 0,
aad_len: aad.len() as u64,
finished: false,
data_len: 0,
aad_len: aad.len() as u64,