Skip to content

Commit

Permalink
Add Wycheproof ECDSA p256 test vectors (RustCrypto#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddrysdale authored Mar 18, 2021
1 parent 014d8d7 commit 7c2a2c2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions p256/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ default-features = false
features = ["der"]

[dev-dependencies]
blobby = "0.3"
ecdsa-core = { version = "=0.11.0-pre.2", package = "ecdsa", default-features = false, features = ["dev"] }
hex-literal = "0.3"
proptest = "1.0"
Expand Down
5 changes: 5 additions & 0 deletions p256/src/ecdsa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,9 @@ mod tests {
use crate::{test_vectors::ecdsa::ECDSA_TEST_VECTORS, NistP256};
ecdsa_core::new_verification_test!(NistP256, ECDSA_TEST_VECTORS);
}

mod wycheproof {
use crate::NistP256;
ecdsa_core::new_wycheproof_test!(wycheproof, "wycheproof", NistP256);
}
}
Binary file added p256/src/test_vectors/data/wycheproof.blb
Binary file not shown.

0 comments on commit 7c2a2c2

Please sign in to comment.