Skip to content

Commit 8d392ad

Browse files
committed
fixup! Refactor onion_utils to encrypt/decrypt OnionErrorPacket types
1 parent d9abd8b commit 8d392ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/onion_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ pub(super) fn crypt_failure_packet(shared_secret: &[u8], packet: &mut OnionError
876876
process_chacha(&ammag, &mut packet.data);
877877
}
878878

879-
pub(super) fn process_chacha(key: &[u8; 32], packet: &mut [u8]) {
879+
fn process_chacha(key: &[u8; 32], packet: &mut [u8]) {
880880
let mut chacha = ChaCha20::new(key, &[0u8; 8]);
881881
chacha.process_in_place(packet);
882882
}

0 commit comments

Comments
 (0)