diff options
| author | Caleb Garrett <[email protected]> | 2024-02-12 20:33:04 -0500 |
|---|---|---|
| committer | Caleb Garrett <[email protected]> | 2024-02-12 20:33:04 -0500 |
| commit | d8b4922b3ced8645a6225dcb0e8b873364bc8337 (patch) | |
| tree | 0dc147bf6d88b45af57c19d23c596947b2ae5684 /examples | |
| parent | 8c82d1bcbcb8b04f18e9fd2a2d388a316bc50b49 (diff) | |
Add STM32 HMAC function.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/stm32f7/src/bin/hash.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32f7/src/bin/hash.rs b/examples/stm32f7/src/bin/hash.rs index 96e50f84b..cbb880353 100644 --- a/examples/stm32f7/src/bin/hash.rs +++ b/examples/stm32f7/src/bin/hash.rs | |||
| @@ -26,7 +26,7 @@ async fn main(_spawner: Spawner) -> ! { | |||
| 26 | let hw_start_time = Instant::now(); | 26 | let hw_start_time = Instant::now(); |
| 27 | 27 | ||
| 28 | // Compute a digest in hardware. | 28 | // Compute a digest in hardware. |
| 29 | let mut context = hw_hasher.start(Algorithm::SHA256, DataType::Width8); | 29 | let mut context = hw_hasher.start(Algorithm::SHA256, DataType::Width8, None); |
| 30 | hw_hasher.update(&mut context, test_1).await; | 30 | hw_hasher.update(&mut context, test_1).await; |
| 31 | hw_hasher.update(&mut context, test_2).await; | 31 | hw_hasher.update(&mut context, test_2).await; |
| 32 | let mut hw_digest: [u8; 32] = [0; 32]; | 32 | let mut hw_digest: [u8; 32] = [0; 32]; |
