Skip to content

Commit

Permalink
fix: fix binding invalid_key_iv_length error
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoguang1010 committed Jan 19, 2024
1 parent 7d1cdfa commit c2a07bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imkey-core/ikc-device/src/key_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl KeyManager {
data.extend(&hash[..4]);

//AES-CBC encryption
let ciphertext = encrypt_pkcs7(&self.encry_key, &self.iv, &data)?;
let ciphertext = encrypt_pkcs7(&data, &self.encry_key, &self.iv)?;

//base64 coding
Ok(encode(&ciphertext))
Expand Down

0 comments on commit c2a07bf

Please sign in to comment.