Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov authored Feb 1, 2025
1 parent 7d8a685 commit dca5fdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto-common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ pub trait KeyIvInit: KeySizeUser + IvSizeUser + Sized {
/// Create new value from fixed length key and nonce after checking the key for weakness.
#[inline]
fn new_checked(key: &Key<Self>, iv: &Iv<Self>) -> Result<Self, WeakKeyError> {
Self::weak_key_test(iv)?;
Self::weak_key_test(key)?;
Ok(Self::new(key, iv))
}

Expand Down

0 comments on commit dca5fdc

Please sign in to comment.