[package]
edition = "2024"
rust-version = "1.87"
name = "sec-mem"
version = "0.1.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-assurance, attack-resistant cryptographic memory allocator and hardware-enforced secret container"
homepage = "https://codeberg.org/hacer-bark/sec-mem"
documentation = "https://docs.rs/sec-mem"
readme = "README.md"
keywords = [
"crypto",
"secret",
"memory",
"mseal",
"zeroize",
]
categories = [
"cryptography",
"no-std",
"memory-management",
]
license = "MIT OR Apache-2.0"
repository = "https://codeberg.org/hacer-bark/sec-mem"
[features]
default = [
"sec_mem",
"encryption",
]
encryption = [
"sec_mem",
"chacha20",
]
key_shielding = [
"encryption",
"blake3",
]
sec_mem = ["libc"]
[lib]
name = "sec_mem"
path = "src/lib.rs"
[[test]]
name = "sec_mem_test"
path = "tests/sec_mem_test.rs"
[[test]]
name = "secret_box_test"
path = "tests/secret_box_test.rs"
[[bench]]
name = "sec_mem_benchmarks"
path = "benches/sec_mem_benchmarks.rs"
harness = false
[dependencies.blake3]
version = "1.5"
optional = true
[dependencies.chacha20]
version = "0.10"
optional = true
[dependencies.libc]
version = "0.2"
optional = true
[dependencies.subtle]
version = "2.6"
[dependencies.zeroize]
version = "1.8"
[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]
[dev-dependencies.rand]
version = "0.10"