Repo of no-std crates for my personal embedded projects
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remember to cargo fmt

+10 -2
+10 -2
sachy-crypto/src/lib.rs
··· 153 153 } 154 154 155 155 impl SendingState<'_> { 156 - pub fn encrypt(&mut self, msg: &mut alloc::vec::Vec<u8>, associated_data: &[u8]) -> Result<(), ProtoError> { 156 + pub fn encrypt( 157 + &mut self, 158 + msg: &mut alloc::vec::Vec<u8>, 159 + associated_data: &[u8], 160 + ) -> Result<(), ProtoError> { 157 161 let counter = self.counter.to_be_bytes(); 158 162 159 163 self.transport.encrypt_in_place( ··· 180 184 } 181 185 182 186 impl ReceivingState<'_> { 183 - pub fn decrypt(&mut self, msg: &mut alloc::vec::Vec<u8>, associated_data: &[u8]) -> Result<(), ProtoError> { 187 + pub fn decrypt( 188 + &mut self, 189 + msg: &mut alloc::vec::Vec<u8>, 190 + associated_data: &[u8], 191 + ) -> Result<(), ProtoError> { 184 192 let counter = self.counter.to_be_bytes(); 185 193 186 194 self.transport.decrypt_in_place(