Files

131 lines
3.7 KiB
TOML
Raw Permalink Normal View History

2020-06-05 09:35:14 -07:00
[package]
authors = [
"VexaHub Developers",
"Kevin Lewi <[email protected]>",
"François Garillot <[email protected]>",
]
categories = ["no-std", "cryptography"]
2020-06-05 09:35:14 -07:00
description = "An implementation of the OPAQUE password-authenticated key exchange protocol"
edition = "2024"
2025-05-19 22:56:25 +02:00
exclude = ["/src/tests/"]
keywords = ["cryptography", "opaque", "passwords", "authentication", "pake"]
2022-01-06 06:19:02 +01:00
license = "Apache-2.0 OR MIT"
name = "opaque-vx"
2020-06-05 09:35:14 -07:00
readme = "README.md"
repository = "https://github.com/vexahub/opaque-vx"
rust-version = "1.90"
2026-07-02 23:21:28 +02:00
version = "1.0.0-rc.0"
2020-06-05 09:35:14 -07:00
2020-06-11 14:56:34 -07:00
[features]
2023-02-04 22:25:41 +01:00
argon2 = ["dep:argon2"]
curve25519 = ["dep:curve25519-dalek"]
2025-05-19 22:56:25 +02:00
default = ["ristretto255", "serde"]
ecdsa = ["dep:ecdsa"]
2025-05-19 22:56:25 +02:00
ed25519 = ["dep:curve25519-dalek", "dep:ed25519-dalek"]
kem = ["dep:ml-kem"]
2025-05-19 22:56:25 +02:00
ristretto255 = ["dep:curve25519-dalek", "voprf/ristretto255-ciphersuite"]
2025-04-28 21:48:06 +02:00
serde = [
"dep:serde",
"curve25519-dalek?/serde",
"ecdsa?/serde",
"ed25519-dalek?/serde",
"elliptic-curve/serde",
"generic-array/serde",
"hybrid-array/serde",
"voprf/serde",
"zeroize/serde",
2025-04-28 21:48:06 +02:00
]
2025-11-03 14:31:59 -08:00
std = ["dep:getrandom", "rand/std"]
2020-06-11 14:56:34 -07:00
2020-06-05 09:35:14 -07:00
[dependencies]
argon2 = { version = "0.6.0-rc.8", default-features = false, features = [
"zeroize",
"alloc",
2022-01-06 06:19:02 +01:00
], optional = true }
curve25519-dalek = { version = "5", default-features = false, features = [
"zeroize",
], optional = true }
derive-where = { version = "1.6", features = ["zeroize-on-drop"] }
digest = { version = "0.11", features = ["zeroize"] }
2021-08-17 05:11:53 +02:00
displaydoc = { version = "0.2", default-features = false }
2026-07-02 23:21:28 +02:00
ecdsa = { version = "0.17", default-features = false, features = [
"algorithm",
2025-05-19 22:56:25 +02:00
], optional = true }
ed25519-dalek = { version = "3", default-features = false, features = [
"zeroize",
"digest",
"hazmat",
2025-05-19 22:56:25 +02:00
], optional = true }
elliptic-curve = { version = "0.14", features = ["sec1"] }
generic-array = { version = "1.4", features = ["hybrid-array-0_4", "zeroize"] }
hybrid-array = { version = "0.4", features = ["extra-sizes", "zeroize"] }
hkdf = "0.13"
hmac = { version = "0.13", features = ["zeroize"] }
ml-kem = { version = "0.3", default-features = false, features = [
"zeroize",
2025-11-08 14:21:51 -08:00
], optional = true }
rand = { version = "0.10", default-features = false }
2023-02-04 22:25:41 +01:00
serde = { version = "1", default-features = false, features = [
"derive",
2022-01-06 06:19:02 +01:00
], optional = true }
subtle = { version = "2.6", default-features = false }
voprf = { package = "voprf-vx", version = "1.0.0-rc.1", default-features = false, features = [
"danger",
] }
zeroize = { version = "1.9", features = ["zeroize_derive"] }
2020-06-05 09:35:14 -07:00
2021-08-17 05:11:53 +02:00
[target.'cfg(target_arch = "wasm32")'.dependencies]
getrandom = { version = "0.4", features = ["wasm_js"], optional = true }
2021-08-17 05:11:53 +02:00
2020-06-05 09:35:14 -07:00
[dev-dependencies]
anyhow = "1"
bincode-next = { version = "3", features = ["serde", "alloc"] }
chacha20poly1305 = { version = "0.11", features = ["zeroize"] }
criterion = "0.8"
cryptoki = "0.12"
elliptic-curve = { version = "0.14", features = ["alloc", "pkcs8"] }
2021-07-31 00:36:57 +02:00
hex = "0.4"
p256 = { version = "0.14", default-features = false, features = [
"ecdsa",
"hash2curve",
"pkcs8",
"oprf",
2022-02-25 07:13:22 +01:00
] }
p384 = { version = "0.14", default-features = false, features = [
"hash2curve",
"pkcs8",
"oprf",
2023-03-06 20:28:19 +01:00
] }
p521 = { version = "0.14.0-rc.15", default-features = false, features = [
"hash2curve",
"pkcs8",
"oprf",
2023-11-16 20:07:46 +01:00
] }
pastey = "0.2"
2021-07-31 00:36:57 +02:00
proptest = "1"
rand = "0.10"
rand_chacha = "0.10"
regex = "1"
sha2 = { version = "0.11", default-features = false, features = ["zeroize"] }
thiserror = "2"
2023-02-04 01:45:52 +01:00
# MSRV
rustyline = "18"
scrypt = "0.12"
2022-01-06 06:19:02 +01:00
serde_json = "1"
[[bench]]
harness = false
2022-01-06 06:19:02 +01:00
name = "opaque"
2022-02-25 07:13:22 +01:00
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
2022-02-25 07:13:22 +01:00
targets = []
2022-07-24 23:26:48 -04:00
[[example]]
name = "simple_login"
required-features = ["argon2"]
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test_hsm)'] }