Skip to content

Commit be0ac18

Browse files
author
Jakob Gerstmayer
committed
Added hint that iv is currently always 0
1 parent ad06083 commit be0ac18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hal/src/aes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ impl Aes {
792792
/// let mut aes: Aes = Aes::new(dp.AES, &mut dp.RCC);
793793
///
794794
/// const KEY: [u32; 4] = [0; 4];
795-
/// const IV: [u32; 4] = [0; 4];
795+
/// const IV: [u32; 4] = [0; 4]; //currently not used
796796
///
797797
/// let plaintext: [u32; 4] = [0xf34481ec, 0x3cc627ba, 0xcd5dc3fb, 0x08f273e6];
798798
/// let mut ciphertext: [u32; 4] = [0; 4];
@@ -802,7 +802,7 @@ impl Aes {
802802
pub fn encrypt_cbc(
803803
&mut self,
804804
key: &[u32],
805-
iv: &[u32; 4],
805+
_iv: &[u32; 4],
806806
plaintext: &[u32; 4],
807807
ciphertext: &mut [u32; 4],
808808
) -> Result<(), Error> {

0 commit comments

Comments
 (0)