# 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 believe there's an error in this file please file an
# issue against the rust-lang/cargo repository. If you're
# editing this file be aware that the upstream Cargo.toml
# will likely look very different (and much more reasonable)

[package]
edition = "2018"
name = "askar-crypto"
version = "0.2.1"
authors = ["Hyperledger Aries Contributors <aries@lists.hyperledger.org>"]
description = "Hyperledger Aries Askar cryptography"
readme = "README.md"
keywords = ["hyperledger", "aries", "didcomm", "ssi"]
categories = ["cryptography", "no-std"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/hyperledger/aries-askar/"
[package.metadata.docs.rs]
features = ["argon2", "std"]
rustdoc-args = ["--cfg", "docsrs"]

[[bench]]
name = "enc"
harness = false

[[bench]]
name = "kdf"
harness = false
[dependencies.aead]
version = "0.3"

[dependencies.aes-core]
version = "0.6"
optional = true
default-features = false
package = "aes"

[dependencies.aes-gcm]
version = "0.8"
features = ["aes"]
optional = true
default-features = false

[dependencies.arbitrary]
version = "1.0"
features = ["derive"]
optional = true

[dependencies.argon2]
version = "0.1"
features = ["password-hash"]
optional = true
default-features = false

[dependencies.base64]
version = "0.13"
default-features = false

[dependencies.blake2]
version = "0.9"
default-features = false

[dependencies.block-modes]
version = "0.7"
optional = true
default-features = false

[dependencies.bls12_381]
version = "0.4"
features = ["groups"]
optional = true
default-features = false

[dependencies.chacha20]
version = "0.6"

[dependencies.chacha20poly1305]
version = "0.7"
features = ["chacha20", "xchacha20poly1305"]
optional = true
default-features = false

[dependencies.crypto_box_rs]
version = "0.5"
features = ["u64_backend"]
optional = true
default-features = false
package = "crypto_box"

[dependencies.curve25519-dalek]
version = "3.1"
features = ["u64_backend"]
optional = true
default-features = false

[dependencies.digest]
version = "0.9"

[dependencies.ed25519-dalek]
version = "1.0"
features = ["u64_backend"]
optional = true
default-features = false

[dependencies.group]
version = "0.9"

[dependencies.hkdf]
version = "0.11"
optional = true

[dependencies.hmac]
version = "0.11"
optional = true

[dependencies.k256]
version = "0.9"
features = ["arithmetic", "ecdsa", "ecdh", "sha256", "zeroize"]
optional = true
default-features = false

[dependencies.p256]
version = "0.9"
features = ["arithmetic", "ecdsa", "ecdh", "zeroize"]
optional = true
default-features = false

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

[dependencies.serde]
version = "1.0"
features = ["derive"]
default-features = false

[dependencies.serde-json-core]
version = "0.4"
default-features = false

[dependencies.sha2]
version = "0.9"
default-features = false

[dependencies.subtle]
version = "2.4"

[dependencies.x25519-dalek]
version = "1.1"
features = ["u64_backend"]
optional = true
default-features = false

[dependencies.zeroize]
version = "1.4"
features = ["zeroize_derive"]
[dev-dependencies.base64]
version = "0.13"
features = ["alloc"]
default-features = false

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

[dev-dependencies.hex-literal]
version = "0.3"

[dev-dependencies.serde-json-core]
version = "0.4"
features = ["std"]
default-features = false

[dev-dependencies.serde_cbor]
version = "0.11"

[features]
aes = ["aes-core", "aes-gcm", "block-modes", "hmac"]
all_keys = ["aes", "bls", "chacha", "ec_curves", "ed25519"]
alloc = []
any_key = ["alloc"]
bls = ["bls12_381", "hkdf"]
chacha = ["chacha20poly1305"]
crypto_box = ["alloc", "crypto_box_rs", "ed25519", "getrandom"]
default = ["alloc", "any_key", "all_keys", "crypto_box"]
ec_curves = ["k256", "p256"]
ed25519 = ["curve25519-dalek", "ed25519-dalek", "x25519-dalek"]
getrandom = ["rand/getrandom"]
std = ["alloc", "serde/std", "serde-json-core/std"]
