diff --git a/sachy-crypto/src/lib.rs b/sachy-crypto/src/lib.rs index 078b773..f6b39c1 100644 --- a/sachy-crypto/src/lib.rs +++ b/sachy-crypto/src/lib.rs @@ -153,7 +153,11 @@ pub struct SendingState<'a> { } impl SendingState<'_> { - pub fn encrypt(&mut self, msg: &mut alloc::vec::Vec, associated_data: &[u8]) -> Result<(), ProtoError> { + pub fn encrypt( + &mut self, + msg: &mut alloc::vec::Vec, + associated_data: &[u8], + ) -> Result<(), ProtoError> { let counter = self.counter.to_be_bytes(); self.transport.encrypt_in_place( @@ -180,7 +184,11 @@ pub struct ReceivingState<'a> { } impl ReceivingState<'_> { - pub fn decrypt(&mut self, msg: &mut alloc::vec::Vec, associated_data: &[u8]) -> Result<(), ProtoError> { + pub fn decrypt( + &mut self, + msg: &mut alloc::vec::Vec, + associated_data: &[u8], + ) -> Result<(), ProtoError> { let counter = self.counter.to_be_bytes(); self.transport.decrypt_in_place(