[package]
edition = "2021"
rust-version = "1.81"
name = "crypt-sha512"
version = "1.0.0"
build = false
include = [
"src/**/*.rs",
"Cargo.toml",
"README.md",
"LICENSE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "no_std SHA512-crypt ($6$) password hashing, ported from Ulrich Drepper's reference implementation. Pluggable crypto backend (aws-lc, BoringSSL, OpenSSL, or RustCrypto) selected by feature."
homepage = "https://github.com/ogital-net/crypt-sha512"
documentation = "https://docs.rs/crypt-sha512"
readme = "README.md"
keywords = [
"crypt",
"sha512",
"password",
"hash",
"no_std",
]
categories = [
"cryptography",
"authentication",
"no-std",
]
license = "BSD-2-Clause"
repository = "https://github.com/ogital-net/crypt-sha512"
[package.metadata.docs.rs]
features = ["backend-aws-lc"]
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
backend-aws-lc = ["dep:aws-lc-sys"]
backend-boring = ["dep:boring-sys"]
backend-openssl = ["dep:openssl-sys"]
backend-rust-crypto = [
"dep:sha2",
"dep:getrandom",
"dep:subtle",
"dep:zeroize",
]
default = []
[lib]
name = "crypt_sha512"
path = "src/lib.rs"
[dependencies.aws-lc-sys]
version = "0.41"
optional = true
[dependencies.boring-sys]
version = "5"
optional = true
[dependencies.getrandom]
version = "0.4"
optional = true
[dependencies.openssl-sys]
version = "0.9"
optional = true
[dependencies.sha2]
version = "0.11"
features = ["zeroize"]
optional = true
default-features = false
[dependencies.subtle]
version = "2"
optional = true
default-features = false
[dependencies.zeroize]
version = "1"
optional = true
default-features = false