[package]
edition = "2021"
name = "gost-crypto"
version = "0.3.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "GOST 28147-89 block cipher and GOST R 34.11-94 hash — no_std, RustCrypto compatible"
readme = "README.md"
keywords = [
"gost",
"crypto",
"cipher",
"hash",
"no-std",
]
categories = [
"cryptography",
"no-std",
]
license = "WTFPL"
repository = "https://github.com/Newmcpe/gost-crypto"
[features]
default = []
hmac-streebog = [
"dep:hmac",
"streebog",
]
kuznyechik = ["dep:kuznyechik"]
mac = ["dep:cmac"]
std = [
"digest/std",
"cipher/std",
]
streebog = ["dep:streebog"]
[lib]
name = "gost_crypto"
path = "src/lib.rs"
[[example]]
name = "sizes"
path = "examples/sizes.rs"
[[test]]
name = "cipher_modes"
path = "tests/cipher_modes.rs"
[[test]]
name = "hmac_streebog_kat"
path = "tests/hmac_streebog_kat.rs"
[[test]]
name = "kuznyechik_kat"
path = "tests/kuznyechik_kat.rs"
[[bench]]
name = "gost"
path = "benches/gost.rs"
harness = false
[dependencies.cipher]
version = "0.4"
default-features = false
[dependencies.cmac]
version = "0.7"
optional = true
default-features = false
[dependencies.digest]
version = "0.10"
default-features = false
[dependencies.hmac]
version = "0.12"
optional = true
default-features = false
[dependencies.kuznyechik]
version = "0.9.0-rc.3"
optional = true
default-features = false
[dependencies.streebog]
version = "0.10"
optional = true
default-features = false
[dev-dependencies.cbc]
version = "0.1"
[dev-dependencies.cfb-mode]
version = "0.8"
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.ctr]
version = "0.9"
[dev-dependencies.hex-literal]
version = "0.4"
[dev-dependencies.ofb]
version = "0.6"
[lints.clippy.all]
level = "deny"
priority = 10
[lints.clippy.pedantic]
level = "warn"
priority = 3
[lints.rust]
missing_docs = "warn"