[package]
edition = "2021"
rust-version = "1.89"
name = "oxicrypto"
version = "0.1.0"
authors = ["COOLJAPAN OU (Team Kitasan)"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure Rust cryptography facade for the OxiCrypto stack (hashes, AEADs, MACs, signatures, KEX, KDFs, CSPRNG)"
readme = "README.md"
keywords = [
"cryptography",
"pure-rust",
"aead",
"ed25519",
"hkdf",
]
categories = ["cryptography"]
license = "Apache-2.0"
repository = "https://github.com/cool-japan/oxicrypto"
[features]
aws-lc = [
"dep:oxicrypto-adapter-aws-lc",
"oxicrypto-adapter-aws-lc/aws-lc",
]
default = ["pure"]
pkcs11 = [
"dep:oxicrypto-adapter-pkcs11",
"oxicrypto-adapter-pkcs11/pkcs11",
]
pq-preview = [
"dep:oxicrypto-pq",
"dep:rand_chacha",
"dep:rand_core",
"dep:getrandom",
]
pure = [
"dep:oxicrypto-hash",
"dep:oxicrypto-aead",
"dep:oxicrypto-cipher",
"dep:oxicrypto-mac",
"dep:oxicrypto-sig",
"dep:oxicrypto-kex",
"dep:oxicrypto-kdf",
"dep:oxicrypto-rand",
]
simd = ["dep:cpufeatures"]
std = [
"oxicrypto-core/std",
"oxicrypto-hash?/std",
"oxicrypto-aead?/std",
"oxicrypto-cipher?/std",
"oxicrypto-mac?/std",
"oxicrypto-sig?/std",
"oxicrypto-kex?/std",
"oxicrypto-kdf?/std",
"oxicrypto-rand?/std",
]
[lib]
name = "oxicrypto"
path = "src/lib.rs"
[[example]]
name = "encrypt"
path = "examples/encrypt.rs"
[[example]]
name = "hash"
path = "examples/hash.rs"
[[example]]
name = "kex"
path = "examples/kex.rs"
[[example]]
name = "pq_kem"
path = "examples/pq_kem.rs"
required-features = ["pq-preview"]
[[example]]
name = "sign"
path = "examples/sign.rs"
[[test]]
name = "features"
path = "tests/features.rs"
[[test]]
name = "integration_pipeline"
path = "tests/integration_pipeline.rs"
[dependencies.cpufeatures]
version = "0.3.0"
optional = true
[dependencies.getrandom]
version = "0.4.2"
features = [
"std",
"sys_rng",
]
optional = true
[dependencies.oxicrypto-adapter-aws-lc]
version = "0.1.0"
optional = true
[dependencies.oxicrypto-adapter-pkcs11]
version = "0.1.0"
optional = true
[dependencies.oxicrypto-aead]
version = "0.1.0"
optional = true
[dependencies.oxicrypto-cipher]
version = "0.1.0"
optional = true
[dependencies.oxicrypto-core]
version = "0.1.0"
[dependencies.oxicrypto-hash]
version = "0.1.0"
optional = true
[dependencies.oxicrypto-kdf]
version = "0.1.0"
optional = true
[dependencies.oxicrypto-kex]
version = "0.1.0"
optional = true
[dependencies.oxicrypto-mac]
version = "0.1.0"
optional = true
[dependencies.oxicrypto-pq]
version = "0.1.0"
optional = true
[dependencies.oxicrypto-rand]
version = "0.1.0"
optional = true
[dependencies.oxicrypto-sig]
version = "0.1.0"
optional = true
[dependencies.rand_chacha]
version = "0.10.0"
optional = true
default-features = false
[dependencies.rand_core]
version = "0.10.1"
optional = true
default-features = false
[dev-dependencies.ed25519-dalek]
version = "2.2.0"
features = ["rand_core"]
default-features = false
[dev-dependencies.getrandom]
version = "0.4.2"
features = [
"std",
"sys_rng",
]
[dev-dependencies.oxicrypto-sig]
version = "0.1.0"
[dev-dependencies.p256]
version = "0.14.0-rc.9"
features = [
"ecdsa",
"alloc",
]
default-features = false
[dev-dependencies.p384]
version = "0.14.0-rc.9"
features = [
"ecdsa",
"alloc",
]
default-features = false
[dev-dependencies.p521]
version = "0.14.0-rc.9"
features = [
"ecdsa",
"alloc",
]
default-features = false
[dev-dependencies.rand_chacha]
version = "0.10.0"
default-features = false
[dev-dependencies.rand_core]
version = "0.10.1"
default-features = false
[dev-dependencies.x25519-dalek]
version = "2.0.1"
features = ["static_secrets"]
default-features = false