Skip to content

Commit fe77461

Browse files
committed
blake2: impl crypto_mac and digest traits
Adds a set of `Blake2b`/`VarBlake2b` and `Blake2s`/`VarBlake2s` which are API-compatible with the ones in the current `blake2` v0.9.x release. This commit does not yet include proper tests besides the rustdoc tests.
1 parent 1c3000b commit fe77461

File tree

7 files changed

+468
-27
lines changed

7 files changed

+468
-27
lines changed

Cargo.lock

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

blake2/Cargo.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ categories = ["cryptography", "no-std"]
1414
[dependencies]
1515
arrayref = "0.3"
1616
arrayvec = { version = "0.5", default-features = false }
17+
crypto-mac = "0.8"
18+
digest = "0.9"
19+
opaque-debug = "0.3"
1720
subtle = ">=2, <2.5"
18-
#digest = "0.9"
19-
#crypto-mac = "0.8"
20-
#opaque-debug = "0.3"
2121

2222
[dev-dependencies]
23+
crypto-mac = { version = "0.8", features = ["dev"] }
24+
digest = { version = "0.9", features = ["dev"] }
2325
hex = "0.4"
24-
lazy_static = "1.3.0"
25-
rand = "0.7.0"
26-
rand_chacha = "0.2.0"
26+
hex-literal = "0.2"
27+
lazy_static = "1.3"
28+
rand = "0.7"
29+
rand_chacha = "0.2"
2730
serde = { version = "1.0.91", features = ["derive"] }
2831
serde_json = "1.0.39"
29-
#digest = { version = "0.9", features = ["dev"] }
30-
#crypto-mac = { version = "0.8", features = ["dev"] }
31-
#hex-literal = "0.2"
3232

3333
[features]
3434
default = ["blake2b", "blake2s"]

0 commit comments

Comments
 (0)