Skip to content

Commit

Permalink
fmt + hil
Browse files Browse the repository at this point in the history
  • Loading branch information
playfulFence committed Apr 16, 2024
1 parent 25729d3 commit d158373
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion esp-hal/src/aes/mod.rs
Original file line number Diff line number Diff line change
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 d158373

Please sign in to comment.