From d158373208519c3dd5da49ed37ed9e5e39bb4bb8 Mon Sep 17 00:00:00 2001 From: Kirill Mikhailov Date: Tue, 16 Apr 2024 14:09:00 +0200 Subject: [PATCH] fmt + hil --- esp-hal/src/aes/mod.rs | 2 +- hil-test/tests/aes_dma.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/esp-hal/src/aes/mod.rs b/esp-hal/src/aes/mod.rs index bc56cf9257d..cf43ef21eb5 100644 --- a/esp-hal/src/aes/mod.rs +++ b/esp-hal/src/aes/mod.rs @@ -197,7 +197,7 @@ impl<'d> Aes<'d> { } /// Encrypts/Decrypts the given buffer based on `mode` parameter - pub fn process(&mut self, block: &mut [u8; 16], mode: Mode, key: Key){ + pub fn process(&mut self, block: &mut [u8; 16], mode: Mode, key: Key) { // Convert from Key enum to required byte slice self.write_key(key.as_slice()); self.set_mode(mode as u8); diff --git a/hil-test/tests/aes_dma.rs b/hil-test/tests/aes_dma.rs index 97b84bc2f79..774d58732b6 100644 --- a/hil-test/tests/aes_dma.rs +++ b/hil-test/tests/aes_dma.rs @@ -66,7 +66,7 @@ mod tests { &mut output, Mode::Encryption128, CipherMode::Ecb, - keybuf, + &keybuf, ) .unwrap(); transfer.wait().unwrap(); @@ -111,7 +111,7 @@ mod tests { &mut output, Mode::Decryption128, CipherMode::Ecb, - keybuf, + &keybuf, ) .unwrap(); transfer.wait().unwrap(); @@ -157,7 +157,7 @@ mod tests { &mut output, Mode::Encryption256, CipherMode::Ecb, - keybuf, + &keybuf, ) .unwrap(); transfer.wait().unwrap(); @@ -202,7 +202,7 @@ mod tests { &mut output, Mode::Decryption256, CipherMode::Ecb, - keybuf, + &keybuf, ) .unwrap(); transfer.wait().unwrap();