diff options
| author | Caleb Garrett <[email protected]> | 2024-02-25 21:16:43 -0500 |
|---|---|---|
| committer | Caleb Garrett <[email protected]> | 2024-02-25 21:16:43 -0500 |
| commit | 766372e06a413352dc07b864dd76e85e03782790 (patch) | |
| tree | fe12e8cca6ea8c4bbdcf4c4f3b8b7e6ae0b70b8e /tests | |
| parent | d9c0da8102226cebc36c92b874b8f0bf966ac959 (diff) | |
rustfmt
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/stm32/src/bin/cryp.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/stm32/src/bin/cryp.rs b/tests/stm32/src/bin/cryp.rs index 59c85f258..f105abf26 100644 --- a/tests/stm32/src/bin/cryp.rs +++ b/tests/stm32/src/bin/cryp.rs | |||
| @@ -59,9 +59,7 @@ async fn main(_spawner: Spawner) { | |||
| 59 | let _ = cipher.encrypt_in_place(&iv.into(), &aad, &mut payload_vec); | 59 | let _ = cipher.encrypt_in_place(&iv.into(), &aad, &mut payload_vec); |
| 60 | 60 | ||
| 61 | defmt::assert!(ciphertext == payload_vec[0..ciphertext.len()]); | 61 | defmt::assert!(ciphertext == payload_vec[0..ciphertext.len()]); |
| 62 | defmt::assert!( | 62 | defmt::assert!(encrypt_tag == payload_vec[ciphertext.len()..ciphertext.len() + encrypt_tag.len()]); |
| 63 | encrypt_tag == payload_vec[ciphertext.len()..ciphertext.len() + encrypt_tag.len()] | ||
| 64 | ); | ||
| 65 | 63 | ||
| 66 | // Decrypt in software using AES-GCM 128-bit | 64 | // Decrypt in software using AES-GCM 128-bit |
| 67 | let _ = cipher.decrypt_in_place(&iv.into(), &aad, &mut payload_vec); | 65 | let _ = cipher.decrypt_in_place(&iv.into(), &aad, &mut payload_vec); |
