# 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.75"
name = "citadeldb-crypto"
version = "0.4.0"
authors = ["Yuriy Peysakhov"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cryptographic primitives for Citadel: AES-256-CTR + HMAC-SHA256, key management, Argon2id"
homepage = "https://citadeldb.dev"
readme = "README.md"
keywords = [
    "database",
    "embedded-database",
    "encryption",
    "sql",
    "encrypted-database",
]
categories = [
    "database-implementations",
    "cryptography",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/yp3y5akh0v/citadel"

[features]
aes-cipher = []
chacha = ["dep:chacha20"]
default = ["aes-cipher"]
fips = []

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

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

[dependencies.aes]
version = "0.8"

[dependencies.aes-kw]
version = "0.2"

[dependencies.argon2]
version = "0.5"

[dependencies.chacha20]
version = "0.9"
optional = true

[dependencies.cipher]
version = "0.4"

[dependencies.citadel-core]
version = "0.4.0"
package = "citadeldb-core"

[dependencies.ctr]
version = "0.9"

[dependencies.hkdf]
version = "0.12"

[dependencies.hmac]
version = "0.12"

[dependencies.pbkdf2]
version = "0.12"

[dependencies.rand]
version = "0.8"

[dependencies.sha2]
version = "0.10"

[dependencies.subtle]
version = "2.5"

[dependencies.zeroize]
version = "1.7"
features = ["derive"]

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
