diff options
| author | Caleb Garrett <[email protected]> | 2024-02-14 22:38:05 -0500 |
|---|---|---|
| committer | Caleb Garrett <[email protected]> | 2024-02-25 20:59:07 -0500 |
| commit | 565acdf24301a72fe084aa18b7c55a6110609374 (patch) | |
| tree | 5cdb7aa8c87ad599f9aacc5bde193ed7e7252216 | |
| parent | 72e4cacd914195352c9760856e8b8e40a7851752 (diff) | |
CTR mode functional.
| -rw-r--r-- | embassy-stm32/src/cryp/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/cryp/mod.rs b/embassy-stm32/src/cryp/mod.rs index b368930da..4db95d55c 100644 --- a/embassy-stm32/src/cryp/mod.rs +++ b/embassy-stm32/src/cryp/mod.rs | |||
| @@ -100,8 +100,8 @@ impl<'d, T: Instance> Cryp<'d, T> { | |||
| 100 | panic!("IV length must be 128 bits for CBC."); | 100 | panic!("IV length must be 128 bits for CBC."); |
| 101 | } else if (mode == Mode::CCM) && (ivlen != 128) { | 101 | } else if (mode == Mode::CCM) && (ivlen != 128) { |
| 102 | panic!("IV length must be 128 bits for CCM."); | 102 | panic!("IV length must be 128 bits for CCM."); |
| 103 | } else if (mode == Mode::CTR) && (ivlen != 64) { | 103 | } else if (mode == Mode::CTR) && (ivlen != 128) { |
| 104 | panic!("IV length must be 64 bits for CTR."); | 104 | panic!("IV length must be 128 bits for CTR."); |
| 105 | } else if (mode == Mode::GCM) && (ivlen != 96) { | 105 | } else if (mode == Mode::GCM) && (ivlen != 96) { |
| 106 | panic!("IV length must be 96 bits for GCM."); | 106 | panic!("IV length must be 96 bits for GCM."); |
| 107 | } else if (mode == Mode::GMAC) && (ivlen != 96) { | 107 | } else if (mode == Mode::GMAC) && (ivlen != 96) { |
