diff options
| author | Caleb Garrett <[email protected]> | 2024-03-12 15:05:22 -0400 |
|---|---|---|
| committer | Caleb Garrett <[email protected]> | 2024-03-12 15:05:22 -0400 |
| commit | 2634a57098ebee5fb2ea3efe7cfb5629817a5b43 (patch) | |
| tree | 6aac26295167fa7460d86009f8da42847f6a925f /examples/stm32f7 | |
| parent | 1ec9fc58f44987c11ac1e093f117679c56dbe2ed (diff) | |
Correct cryp CI build issues.
Diffstat (limited to 'examples/stm32f7')
| -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(); |
