diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/stm32f7/src/bin/cryp.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/stm32f7/src/bin/cryp.rs b/examples/stm32f7/src/bin/cryp.rs index a5418765b..ce2cf0489 100644 --- a/examples/stm32f7/src/bin/cryp.rs +++ b/examples/stm32f7/src/bin/cryp.rs | |||
| @@ -44,7 +44,9 @@ async fn main(_spawner: Spawner) -> ! { | |||
| 44 | // Decrypt in hardware using AES-GCM 128-bit | 44 | // Decrypt in hardware using AES-GCM 128-bit |
| 45 | let mut gcm_decrypt = hw_cryp.start(&aes_gcm, Direction::Decrypt).await; | 45 | let mut gcm_decrypt = hw_cryp.start(&aes_gcm, Direction::Decrypt).await; |
| 46 | hw_cryp.aad(&mut gcm_decrypt, aad, true).await; | 46 | hw_cryp.aad(&mut gcm_decrypt, aad, true).await; |
| 47 | hw_cryp.payload(&mut gcm_decrypt, &ciphertext, &mut plaintext, true).await; | 47 | hw_cryp |
| 48 | .payload(&mut gcm_decrypt, &ciphertext, &mut plaintext, true) | ||
| 49 | .await; | ||
| 48 | let decrypt_tag = hw_cryp.finish(gcm_decrypt).await; | 50 | let decrypt_tag = hw_cryp.finish(gcm_decrypt).await; |
| 49 | 51 | ||
| 50 | let hw_end_time = Instant::now(); | 52 | let hw_end_time = Instant::now(); |
