Skip to content

Commit

Permalink
oops + clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
reaperhulk committed Sep 1, 2024
1 parent 5ff8594 commit 3e57d9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions openssl/src/kdf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ mod tests {
let ad = hex::decode("040404040404040404040404").unwrap();
let expected = "0d640df58d78766c08c037a34a8b53c9d01ef0452d75b65eb52520e96b01e659";

let mut actual = [0 as u8; 32];
let mut actual = [0u8; 32];
super::argon2id(
&pass,
&salt,
Expand All @@ -155,8 +155,8 @@ mod tests {
let salt = hex::decode("02020202020202020202020202020202").unwrap();
let expected = "0a34f1abde67086c82e785eaf17c68382259a264f4e61b91cd2763cb75ac189a";

let mut actual = [0 as u8; 32];
super::argon2id(&pass.as_bytes(), &salt, None, None, 3, 4, 32, &mut actual).unwrap();
let mut actual = [0u8; 32];
super::argon2id(pass.as_bytes(), &salt, None, None, 3, 4, 32, &mut actual).unwrap();
assert_eq!(hex::encode(&actual[..]), expected);
}
}
1 change: 0 additions & 1 deletion openssl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ mod bio;
#[macro_use]
mod util;
pub mod aes;
#[cfg(ossl320)]
pub mod asn1;
pub mod base64;
pub mod bn;
Expand Down

0 comments on commit 3e57d9a

Please sign in to comment.