opaque-vx 1.0.0-rc.0

An implementation of the OPAQUE password-authenticated key exchange protocol
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.90"
name = "opaque-vx"
version = "1.0.0-rc.0"
authors = [
    "VexaHub Developers",
    "Kevin Lewi <klewi@fb.com>",
    "François Garillot <fga@fb.com>",
]
build = false
exclude = ["/src/tests/"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An implementation of the OPAQUE password-authenticated key exchange protocol"
readme = "README.md"
keywords = [
    "cryptography",
    "opaque",
    "passwords",
    "authentication",
    "pake",
]
categories = [
    "no-std",
    "cryptography",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/vexahub/opaque-vx"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]
targets = []

[features]
argon2 = ["dep:argon2"]
curve25519 = ["dep:curve25519-dalek"]
default = [
    "ristretto255",
    "serde",
]
ecdsa = ["dep:ecdsa"]
ed25519 = [
    "dep:curve25519-dalek",
    "dep:ed25519-dalek",
]
kem = ["dep:ml-kem"]
ristretto255 = [
    "dep:curve25519-dalek",
    "voprf/ristretto255-ciphersuite",
]
serde = [
    "dep:serde",
    "curve25519-dalek?/serde",
    "ecdsa?/serde",
    "ed25519-dalek?/serde",
    "elliptic-curve/serde",
    "generic-array/serde",
    "hybrid-array/serde",
    "voprf/serde",
    "zeroize/serde",
]
std = [
    "dep:getrandom",
    "rand/std",
]

[lib]
name = "opaque_vx"
path = "src/lib.rs"

[[example]]
name = "digital_locker"
path = "examples/digital_locker.rs"

[[example]]
name = "simple_login"
path = "examples/simple_login.rs"
required-features = ["argon2"]

[[test]]
name = "remote_key"
path = "tests/remote_key.rs"

[[bench]]
name = "opaque"
path = "benches/opaque.rs"
harness = false

[dependencies.argon2]
version = "0.6.0-rc.8"
features = [
    "zeroize",
    "alloc",
]
optional = true
default-features = false

[dependencies.curve25519-dalek]
version = "5.0.0-rc.1"
features = ["zeroize"]
optional = true
default-features = false

[dependencies.derive-where]
version = "1.6"
features = ["zeroize-on-drop"]

[dependencies.digest]
version = "0.11"
features = ["zeroize"]

[dependencies.displaydoc]
version = "0.2"
default-features = false

[dependencies.ecdsa]
version = "0.17"
features = ["algorithm"]
optional = true
default-features = false

[dependencies.ed25519-dalek]
version = "3.0.0-rc.1"
features = [
    "zeroize",
    "digest",
    "hazmat",
]
optional = true
default-features = false

[dependencies.elliptic-curve]
version = "0.14"
features = ["sec1"]

[dependencies.generic-array]
version = "1.4"
features = [
    "hybrid-array-0_4",
    "zeroize",
]

[dependencies.hkdf]
version = "0.13"

[dependencies.hmac]
version = "0.13"
features = ["zeroize"]

[dependencies.hybrid-array]
version = "0.4"
features = [
    "extra-sizes",
    "zeroize",
]

[dependencies.ml-kem]
version = "0.3"
features = ["zeroize"]
optional = true
default-features = false

[dependencies.rand]
version = "0.10"
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
default-features = false

[dependencies.subtle]
version = "2.6"
default-features = false

[dependencies.voprf]
version = "1.0.0-rc.1"
features = ["danger"]
default-features = false
package = "voprf-vx"

[dependencies.zeroize]
version = "1.9"
features = ["zeroize_derive"]

[dev-dependencies.anyhow]
version = "1"

[dev-dependencies.bincode-next]
version = "3"
features = [
    "serde",
    "alloc",
]

[dev-dependencies.chacha20poly1305]
version = "0.11"
features = ["zeroize"]

[dev-dependencies.criterion]
version = "0.8"

[dev-dependencies.cryptoki]
version = "0.12"

[dev-dependencies.elliptic-curve]
version = "0.14"
features = [
    "alloc",
    "pkcs8",
]

[dev-dependencies.hex]
version = "0.4"

[dev-dependencies.p256]
version = "0.14.0-rc.15"
features = [
    "ecdsa",
    "hash2curve",
    "pkcs8",
    "oprf",
]
default-features = false

[dev-dependencies.p384]
version = "0.14.0-rc.15"
features = [
    "hash2curve",
    "pkcs8",
    "oprf",
]
default-features = false

[dev-dependencies.p521]
version = "0.14.0-rc.15"
features = [
    "hash2curve",
    "pkcs8",
    "oprf",
]
default-features = false

[dev-dependencies.pastey]
version = "0.2"

[dev-dependencies.proptest]
version = "1"

[dev-dependencies.rand]
version = "0.10"

[dev-dependencies.rand_chacha]
version = "0.10"

[dev-dependencies.regex]
version = "1"

[dev-dependencies.rustyline]
version = "18"

[dev-dependencies.scrypt]
version = "0.12"

[dev-dependencies.serde_json]
version = "1"

[dev-dependencies.sha2]
version = "0.11"
features = ["zeroize"]
default-features = false

[dev-dependencies.thiserror]
version = "2"

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.4"
features = ["wasm_js"]
optional = true

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(test_hsm)"]