forked from cryspen/libcrux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
87 lines (71 loc) · 1.97 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[package]
name = "libcrux"
version = "0.0.1"
edition = "2021"
authors = ["Franziskus Kiefer <[email protected]>"]
license = "Apache-2.0"
documentation = "https://docs.rs/libcrux/"
description = "Formally Verified Cryptography"
readme = "Readme.md"
repository = "https://github.com/cryspen/libcrux"
exclude = ["/tests"]
[lib]
crate-type = ["staticlib", "cdylib", "lib"]
[build-dependencies]
libcrux_platform = { version = "=0.0.1", path = "sys/platform" }
[dependencies]
hacl = { version = "=0.0.2", features = ["hazmat"] }
libcrux_platform = { version = "=0.0.1", path = "sys/platform" }
rand = { version = "0.8" }
log = "0.4"
[target.'cfg(all(not(target_os = "windows"), any(target_arch = "x86_64", target_arch = "x86")))'.dependencies]
libjade-sys = { version = "0.0.1", path = "sys/libjade" }
[dev-dependencies]
libcrux = { path = ".", features = ["rand"] }
pretty_env_logger = "0.5"
rand = { version = "0.8" }
rand_core = { version = "0.6" }
criterion = "0.5"
quickcheck = "1"
quickcheck_macros = "1"
serde_json = { version = "1.0" }
serde = { version = "1.0", features = ["derive"] }
hex = "0.4"
libcrux-pqclean = { version = "*", path = "sys/pqclean" }
# Benchmarking "RustCrypto"
chacha20poly1305 = "0.10"
sha2 = "0.10"
x25519-dalek-ng = "1.1"
sha3 = "0.10"
# Benchmarking "Ring"
ring = "0.16"
# Benchmarking "OpenSSL"
# XXX: We don't do this for Windows right now.
[target.'cfg(not(windows))'.dev-dependencies]
openssl = "0.10"
[[bench]]
name = "sha2"
harness = false
[[bench]]
name = "sha3"
harness = false
[[bench]]
name = "x25519"
harness = false
[[bench]]
name = "aead"
harness = false
[[bench]]
name = "hpke"
harness = false
[[bench]]
name = "drbg"
harness = false
[features]
hacspec = [] # TODO: #7 Use specs instead of efficient implementations
rand = []
# [patch.crates-io]
# hacl = { git = "https://github.com/cryspen/hacl-packages" }
# hacl = { path = "../hacl-packages/rust" }
# [patch.'https://github.com/hacspec/hacspec']
# hacspec-lib = { path = "../../hacspec/lib" }