Skip to content

Commit

Permalink
fmt + hil
Browse files Browse the repository at this point in the history
Update comment
  • Loading branch information
playfulFence committed Apr 16, 2024
1 parent 25729d3 commit b6e76bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions esp-hal/src/aes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
//! hw_encrypted,
//! Mode::Encryption128,
//! CipherMode::Ecb,
//! keybuf,
//! &keybuf,
//! )
//! .unwrap();
//! transfer.wait().unwrap();
Expand Down Expand Up @@ -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);
Expand Down
8 changes: 4 additions & 4 deletions hil-test/tests/aes_dma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ mod tests {
&mut output,
Mode::Encryption128,
CipherMode::Ecb,
keybuf,
&keybuf,
)
.unwrap();
transfer.wait().unwrap();
Expand Down Expand Up @@ -111,7 +111,7 @@ mod tests {
&mut output,
Mode::Decryption128,
CipherMode::Ecb,
keybuf,
&keybuf,
)
.unwrap();
transfer.wait().unwrap();
Expand Down Expand Up @@ -157,7 +157,7 @@ mod tests {
&mut output,
Mode::Encryption256,
CipherMode::Ecb,
keybuf,
&keybuf,
)
.unwrap();
transfer.wait().unwrap();
Expand Down Expand Up @@ -202,7 +202,7 @@ mod tests {
&mut output,
Mode::Decryption256,
CipherMode::Ecb,
keybuf,
&keybuf,
)
.unwrap();
transfer.wait().unwrap();
Expand Down

0 comments on commit b6e76bc

Please sign in to comment.