General & Crypto

This commit is contained in:
Alex Emmet 2026-06-20 15:25:36 +02:00
commit 02f94993c7
27 changed files with 1881 additions and 47 deletions

View file

@ -1,6 +1,21 @@
[package]
name = "mtp-crypto"
version = "0.1.0"
version = "0.2.0"
edition = "2024"
[dependencies]
chacha20poly1305 = { version = "0.10", optional = true }
aes-gcm = { version = "0.10", optional = true }
ed25519-dalek = { version = "2.1", optional = true, features = ["pkcs8", "pem"] }
hkdf = { version = "0.12", optional = true }
sha2 = { version = "0.10", optional = true }
zeroize = { version = "1.7", features = ["derive"] }
rand_core = { version = "0.6", features = ["getrandom"] }
getrandom = "0.2"
mlkem-tls = { version = "0.2", optional = true }
ml-dsa = { version = "0.0.4", optional = true }
[features]
default = ["chacha20poly1305", "ed25519-dalek", "hkdf", "sha2"]
full = ["chacha20poly1305", "aes-gcm", "ed25519-dalek", "hkdf", "sha2"]
pqc = ["mlkem-tls", "ml-dsa"]