aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/stm32/src/bin/cryp.rs4
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);