Skip to content

Commit

Permalink
test: implement main test vectors from wycheproof (#477)
Browse files Browse the repository at this point in the history
Thanks to @ctz who implemented a basic structure to run these in in
graviola, I ported running against the relevant test vectors from
https://github.com/C2SP/wycheproof
  • Loading branch information
dignifiedquire authored Feb 14, 2025
1 parent d7fa156 commit c99b4c6
Show file tree
Hide file tree
Showing 6 changed files with 335 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
- stable
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
Expand All @@ -52,6 +54,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@nightly
- run: cargo update -Z minimal-versions
Expand All @@ -62,6 +66,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "thirdparty/wycheproof"]
path = thirdparty/wycheproof
url = [email protected]:C2SP/wycheproof
41 changes: 41 additions & 0 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ rand_core = { version = "0.6", default-features = false }
sha1 = { version = "=0.11.0-pre.4", default-features = false, features = ["oid"] }
sha2 = { version = "=0.11.0-pre.4", default-features = false, features = ["oid"] }
sha3 = { version = "=0.11.0-pre.4", default-features = false, features = ["oid"] }
hex = { version = "0.4.3", features = ["serde"] }
serde_json = "1.0.138"
serde = { version = "1.0.184", features = ["derive"] }

[[bench]]
name = "key"
Expand Down
Loading

0 comments on commit c99b4c6

Please sign in to comment.