55 lines
2.1 KiB
TOML
55 lines
2.1 KiB
TOML
[package]
|
|
name = "ccc-crypto-rustcrypto"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
authors.workspace = true
|
|
license.workspace = true
|
|
description = "Pure-Rust (RustCrypto) provider for the CCC crypto system."
|
|
|
|
[dependencies]
|
|
ccc-crypto-core.workspace = true
|
|
zeroize.workspace = true
|
|
log.workspace = true
|
|
|
|
# AEAD
|
|
aes-gcm = { version = "0.11", default-features = false, features = ["aes", "alloc", "zeroize"] }
|
|
aes-gcm-siv = { version = "0.12", default-features = false, features = ["aes", "alloc", "zeroize"] }
|
|
chacha20poly1305 = { version = "0.11", default-features = false, features = ["alloc", "zeroize"] }
|
|
# Ascon-AEAD128 as standardised in NIST SP 800-232 (not the pre-standard Ascon-128a).
|
|
# Default features are needed: they pull in the optional zeroize dependency
|
|
# that the crate's own "zeroize" feature forgets to enable.
|
|
ascon-aead = { version = "0.6", features = ["zeroize"] }
|
|
|
|
# Hash and MAC
|
|
sha2 = "0.11"
|
|
sha3 = "0.12"
|
|
blake2 = "0.11"
|
|
hmac = "0.13"
|
|
poly1305 = "0.9"
|
|
subtle = "2.6"
|
|
|
|
# KDF
|
|
hkdf = "0.13"
|
|
argon2 = { version = "0.6", default-features = false, features = ["alloc", "zeroize"] }
|
|
|
|
# KEM. `hazmat` exposes deterministic encapsulation for the self-test KATs.
|
|
x25519-dalek = { version = "3.0", features = ["static_secrets"] }
|
|
ml-kem = { version = "0.3", features = ["hazmat", "zeroize"] }
|
|
# X-Wing draft-connolly-cfrg-xwing-kem-06 (ML-KEM-768 + X25519).
|
|
x-wing = { version = "0.1", features = ["hazmat", "zeroize"] }
|
|
getrandom = "0.4"
|
|
# Classic McEliece 460896f (Ultra U2), the version the R0-6 spike measured.
|
|
# Keep its default features: without "zeroize" the crate does not build.
|
|
classic-mceliece-rust = { version = "3.1.0", features = ["mceliece460896f"], optional = true }
|
|
# classic-mceliece-rust takes rand_core 0.6 RNGs.
|
|
rand_core = { version = "0.6", optional = true }
|
|
|
|
[features]
|
|
default = ["mceliece"]
|
|
# Classic McEliece 460896f. The crate builds one parameter set per build,
|
|
# so nothing else in the dependency graph may pick another one.
|
|
mceliece = ["dep:classic-mceliece-rust", "dep:rand_core"]
|
|
|
|
[dev-dependencies]
|
|
hex = "0.4"
|