# 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 = "2021" rust-version = "1.60" name = "crypto_box" version = "0.9.1" authors = ["RustCrypto Developers"] description = """ Pure Rust implementation of NaCl's crypto_box public-key authenticated encryption primitive which combines the X25519 Elliptic Curve Diffie-Hellman function and the XSalsa20Poly1305 authenticated encryption cipher """ homepage = "https://github.com/RustCrypto/nacl-compat" documentation = "https://docs.rs/crypto_box" readme = "README.md" keywords = [ "nacl", "libsodium", "public-key", "x25519", "xsalsa20poly1305", ] categories = [ "cryptography", "no-std", ] license = "Apache-2.0 OR MIT" repository = "https://github.com/RustCrypto/nacl-compat/tree/master/crypto_box" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [dependencies.aead] version = "0.5.2" default-features = false [dependencies.blake2] version = "0.10" optional = true default-features = false [dependencies.chacha20] version = "0.9" optional = true [dependencies.crypto_secretbox] version = "0.1.1" default-features = false [dependencies.curve25519-dalek] version = "4" features = ["zeroize"] default-features = false [dependencies.salsa20] version = "0.10" optional = true [dependencies.serdect] version = "0.2" optional = true default-features = false [dependencies.subtle] version = "2" default-features = false [dependencies.zeroize] version = "1" default-features = false [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"]