Skip to content

Commit 3880c3e

Browse files
committed
f move diff hunk to prev commit
1 parent de8fd45 commit 3880c3e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lightning/src/util/chacha20poly1305rfc.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,11 @@ mod fuzzy_chachapoly {
318318
true
319319
}
320320

321+
pub fn decrypt_in_place(&mut self, input_output: &mut [u8], tag: &[u8]) -> Result<(), ()> {
322+
self.just_decrypt_in_place(input_output);
323+
if self.finish_and_check_tag(tag) { Ok(()) } else { Err(()) }
324+
}
325+
321326
pub(super) fn just_decrypt_in_place(&mut self, _input: &mut [u8]) {
322327
assert!(self.finished == false);
323328
}

0 commit comments

Comments
 (0)