-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
69 lines (54 loc) · 1.72 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
workspace = { members = ['ffi'], exclude = ["ct_cm4", "dudect", "fuzz", "wasm"] }
[package]
name = "fips203"
version = "0.2.1"
edition = "2021"
license = "MIT OR Apache-2.0"
description = "FIPS 203 (draft): Module-Lattice-Based Key-Encapsulation Mechanism"
authors = ["Eric Schorn <eric.schorn@nccgroup.com>"]
documentation = "https://docs.rs/fips203"
categories = ["cryptography", "no-std"]
repository = "https://github.com/nccgroup/fips203"
keywords = ["kem", "FIPS203", "lattice", "kyber", "encapsulation"]
# MSRV set at 1.70 for debian testing, e.g. https://packages.debian.org/search?keywords=rustc
# This requires several marginally outdated dependencies, see below
rust-version = "1.70"
[features]
default = ["default-rng", "ml-kem-512", "ml-kem-768", "ml-kem-1024"]
default-rng = ["rand_core/getrandom"]
ml-kem-512 = []
ml-kem-768 = []
ml-kem-1024 = []
[dependencies] # Some are marginally outdated to retain MSRV 1.70
rand_core = { version = "0.6.4", default-features = false }
sha3 = { version = "0.10.2", default-features = false }
subtle = { version = "2.5.0", default-features = false, features = ['const-generics'] }
zeroize = { version = "1.6.0", default-features = false, features = ["zeroize_derive"] }
[dev-dependencies] # Some are marginally outdated to retain MSRV 1.70
rand = "0.8.5"
regex = "1.10.2"
hex = "0.4.3"
rand_chacha = "0.3.1"
criterion = "0.4.0"
flate2 = "1.0.27"
hex-literal = "0.4.1"
[[bench]]
name = "benchmark"
harness = false
[profile.dev]
debug = true
#lto = true
#opt-level = 3
#codegen-units = 1
[profile.release]
lto = true
opt-level = "s"
codegen-units = 1
[profile.bench]
debug = true
debug-assertions = false
incremental = false
lto = true
opt-level = 3
overflow-checks = false
codegen-units = 1