-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
109 lines (90 loc) · 2.37 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
[package]
name = "krystals"
version = "0.0.1"
authors = ["Kamyar Mohajerani <[email protected]>"]
license = "Apache-2.0"
readme = "README.md"
description = "Rust implementation of CRYSTALS-Kyber and CRYSTALS-Dilithium"
categories = ["cryptography", "no-std"]
homepage = "https://github.com/kammoh/krystals"
repository = "https://github.com/kammoh/krystals.git"
documentation = "https://docs.rs/krystals"
rust-version = "1.59.0"
edition = "2021"
autobenches = true
[lib]
bench = false # disable libtest benchmark harness
[dependencies]
array-init = "2.0.1"
crunchy = { version = "0.2.2", default-features = false, features = [
"limit_64",
] }
paste = "1.0.7"
rand = { version = "0.8.5", default-features = false }
static_assertions = "1.1.0"
secrecy = { version = "0.8.0", default-features = false }
zeroize = { version = "1.5.7", default-features = false, features = [
"zeroize_derive",
"aarch64",
] }
[dev-dependencies]
criterion = { version = "0.3.6", features = ["html_reports"] }
hex-literal = "0.3.4"
rand = "0.8.5"
crystals-cref = { path = "./crystals-cref" }
sha3 = { version = "0.10.2", default-features = false }
tiny-keccak = { version = "2.0.2", features = [
"fips202",
"keccak",
"sha3",
"shake",
] }
[features]
default = ["pub_internals"]
std = ["alloc", "rand/std", "rand/std_rng"]
alloc = ["zeroize/alloc", "secrecy/alloc"]
pub_internals = [] # some internal modules are made public
unstable = []
[[bench]]
name = "keccak"
harness = false
[[bench]]
name = "kyber_poly"
harness = false
required-features = ["pub_internals"]
[[bench]]
name = "dilithium_poly"
harness = false
required-features = ["pub_internals"]
[[bench]]
name = "kyber_polyvec"
harness = false
required-features = ["pub_internals"]
[[bench]]
name = "dilithium_polyvec"
harness = false
required-features = ["pub_internals"]
[[bench]]
name = "kyber_gen_matrix"
harness = false
required-features = ["pub_internals"]
[[bench]]
name = "kyber_indcpa"
harness = false
[package.metadata.docs.rs]
all-features = true
[workspace]
members = ["crystals-cref"]
[profile.dev]
[profile.release]
panic = "abort"
lto = true
strip = true
codegen-units = 1
debug-assertions = false
debug = false
opt-level = 3
overflow-checks = false # Disable integer overflow checks.
incremental = true # Speed up build times by caching intermediate results.
[build-dependencies]
autocfg = "1.1.0"