[dependencies.aead]
default-features = false
version = "0.5.2"
[dependencies.blake2]
default-features = false
optional = true
version = "0.10"
[dependencies.chacha20]
optional = true
version = "0.9"
[dependencies.crypto_secretbox]
default-features = false
version = "0.1.1"
[dependencies.curve25519-dalek]
default-features = false
features = ["zeroize"]
version = "4"
[dependencies.salsa20]
optional = true
version = "0.10"
[dependencies.serdect]
default-features = false
optional = true
version = "0.2"
[dependencies.subtle]
default-features = false
version = "2"
[dependencies.zeroize]
default-features = false
version = "1"
[dev-dependencies.bincode]
version = "1"
[dev-dependencies.hex-literal]
version = "0.4"
[dev-dependencies.rand]
version = "0.8"
[dev-dependencies.rmp-serde]
version = "1"
[features]
alloc = ["aead/alloc"]
chacha20 = ["dep:chacha20", "crypto_secretbox/chacha20"]
default = ["alloc", "getrandom", "salsa20"]
getrandom = ["aead/getrandom", "rand_core"]
heapless = ["aead/heapless"]
rand_core = ["aead/rand_core"]
salsa20 = ["dep:salsa20", "crypto_secretbox/salsa20"]
seal = ["dep:blake2", "alloc"]
serde = ["dep:serdect"]
std = ["aead/std"]
[package]
authors = ["RustCrypto Developers"]
categories = ["cryptography", "no-std"]
description = "Pure Rust implementation of NaCl's crypto_box public-key authenticated\nencryption primitive which combines the X25519 Elliptic Curve Diffie-Hellman\nfunction and the XSalsa20Poly1305 authenticated encryption cipher\n"
documentation = "https://docs.rs/crypto_box"
edition = "2021"
homepage = "https://github.com/RustCrypto/nacl-compat"
keywords = ["nacl", "libsodium", "public-key", "x25519", "xsalsa20poly1305"]
license = "Apache-2.0 OR MIT"
name = "crypto_box"
readme = "README.md"
repository = "https://github.com/RustCrypto/nacl-compat/tree/master/crypto_box"
rust-version = "1.60"
version = "0.9.1"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]