Skip to content

Commit

Permalink
clippy: init nist keygen, siggen, sigver
Browse files Browse the repository at this point in the history
  • Loading branch information
eschorn1 committed Sep 21, 2024
1 parent 7ec2819 commit 779a4c8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/nist_vectors/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,10 @@ fn test_siggen() {
let message = decode(test["message"].as_str().unwrap()).unwrap();
let sig_exp = decode(test["signature"].as_str().unwrap()).unwrap();
let seed = test["rnd"].as_str();
let x: [u8; 32];
if seed.is_none() {
x = [0u8; 32];
let x = if seed.is_none() {
[0u8; 32]
} else {
x = decode(seed.unwrap()).unwrap().try_into().unwrap();
decode(seed.unwrap()).unwrap().try_into().unwrap()
};
let mut rnd = TestRng::new();
rnd.push(&x);
Expand Down

0 comments on commit 779a4c8

Please sign in to comment.