Skip to content

Commit 5c9ca40

Browse files
test: implement main test vectors from wycheproof
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
1 parent d7fa156 commit 5c9ca40

File tree

5 files changed

+361
-0
lines changed

5 files changed

+361
-0
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "thirdparty/wycheproof"]
2+
path = thirdparty/wycheproof
3+
url = git@github.com:C2SP/wycheproof

Cargo.lock

Lines changed: 41 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ rand_core = { version = "0.6", default-features = false }
4444
sha1 = { version = "=0.11.0-pre.4", default-features = false, features = ["oid"] }
4545
sha2 = { version = "=0.11.0-pre.4", default-features = false, features = ["oid"] }
4646
sha3 = { version = "=0.11.0-pre.4", default-features = false, features = ["oid"] }
47+
hex = { version = "0.4.3", features = ["serde"] }
48+
serde_json = "1.0.138"
49+
serde = { version = "1.0.184", features = ["derive"] }
4750

4851
[[bench]]
4952
name = "key"

0 commit comments

Comments
 (0)