[package]
edition = "2021"
name = "dcrypt-kem"
version = "4.0.0"
authors = ["Heath Ledger"]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Key Encapsulation Mechanisms for the dcrypt library"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/ioi-foundation/dcrypt"
[package.metadata.release]
publish = true
[features]
alloc = [
"dcrypt-api/alloc",
"dcrypt-common/alloc",
"dcrypt-internal/alloc",
"dcrypt-algorithms/alloc",
]
default = [
"std",
"traditional",
"post-quantum",
]
no_std = [
"dcrypt-api/no_std",
"dcrypt-common/no_std",
"dcrypt-internal/no_std",
"alloc",
]
post-quantum = ["alloc"]
std = [
"dcrypt-api/std",
"dcrypt-common/std",
"dcrypt-internal/std",
"dcrypt-algorithms/std",
"alloc",
]
traditional = ["alloc"]
[lib]
name = "dcrypt_kem"
path = "src/lib.rs"
[[bench]]
name = "ecdh_comparison"
path = "benches/ecdh_comparison.rs"
harness = false
[[bench]]
name = "ecdh_k256"
path = "benches/ecdh_k256.rs"
harness = false
[[bench]]
name = "ecdh_p256"
path = "benches/ecdh_p256.rs"
harness = false
[[bench]]
name = "ecdh_p384"
path = "benches/ecdh_p384.rs"
harness = false
[[bench]]
name = "ecdh_p521"
path = "benches/ecdh_p521.rs"
harness = false
[[bench]]
name = "ml_kem"
path = "benches/ml_kem.rs"
harness = false
[dependencies.dcrypt-algorithms]
version = "=4.0.0"
features = [
"alloc",
"ec",
"hash",
"mac",
"xof",
]
default-features = false
[dependencies.dcrypt-api]
version = "=4.0.0"
default-features = false
[dependencies.dcrypt-common]
version = "=4.0.0"
default-features = false
[dependencies.dcrypt-internal]
version = "=4.0.0"
default-features = false
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[lints.rust]
unsafe_code = "forbid"