# 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" name = "hpke" version = "0.12.0" authors = ["Michael Rosenberg "] description = "An implementation of the HPKE hybrid encryption standard (RFC 9180) in pure Rust" documentation = "https://docs.rs/rust-hpke" readme = "README.md" keywords = [ "cryptography", "crypto", "key-exchange", "encryption", "aead", ] categories = [ "cryptography", "no-std", ] license = "MIT/Apache-2.0" repository = "https://github.com/rozbb/rust-hpke" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [lib] bench = false [[example]] name = "client_server" required-features = ["x25519"] [[example]] name = "agility" required-features = [ "p256", "p384", "p521", "x25519", ] [[bench]] name = "benches" harness = false [dependencies.aead] version = "0.5" [dependencies.aes-gcm] version = "0.10" [dependencies.chacha20poly1305] version = "0.10" [dependencies.digest] version = "0.10" [dependencies.generic-array] version = "0.14" default-features = false [dependencies.hkdf] version = "0.12" [dependencies.hmac] version = "0.12" [dependencies.p256] version = "0.13" features = [ "arithmetic", "ecdh", ] optional = true default-features = false [dependencies.p384] version = "0.13" features = [ "arithmetic", "ecdh", ] optional = true default-features = false [dependencies.p521] version = "0.13" features = [ "arithmetic", "ecdh", ] optional = true default-features = false [dependencies.rand_core] version = "0.6" default-features = false [dependencies.sha2] version = "0.10" default-features = false [dependencies.subtle] version = "2.6" default-features = false [dependencies.x25519-dalek] version = "2" features = ["static_secrets"] optional = true default-features = false [dependencies.zeroize] version = "1" features = ["zeroize_derive"] default-features = false [dev-dependencies.criterion] version = "0.4" features = ["html_reports"] [dev-dependencies.hex] version = "0.4" [dev-dependencies.hex-literal] version = "0.4" [dev-dependencies.rand] version = "0.8" features = [ "getrandom", "std_rng", ] default-features = false [dev-dependencies.serde] version = "1.0" features = ["derive"] [dev-dependencies.serde_json] version = "1.0" [features] alloc = [] default = [ "alloc", "p256", "x25519", ] p256 = ["dep:p256"] p384 = ["dep:p384"] p521 = ["dep:p521"] std = [] x25519 = ["dep:x25519-dalek"]