2026-03-07 13:03:10 +08:00
|
|
|
[package]
|
|
|
|
|
name = "libsmx"
|
|
|
|
|
version = "0.1.0"
|
|
|
|
|
edition = "2021"
|
|
|
|
|
rust-version = "1.72.0"
|
|
|
|
|
license = "Apache-2.0"
|
2026-03-07 19:27:41 +08:00
|
|
|
description = "Pure-Rust, no_std, constant-time SM2/SM3/SM4/SM9 Chinese cryptography (GB/T 32918/32905/32907/38635)"
|
|
|
|
|
repository = "https://github.com/aspect-building/libsmx"
|
2026-03-07 13:03:10 +08:00
|
|
|
documentation = "https://docs.rs/libsmx"
|
2026-03-07 19:27:41 +08:00
|
|
|
homepage = "https://github.com/aspect-building/libsmx"
|
2026-03-07 13:03:10 +08:00
|
|
|
categories = ["cryptography", "no-std"]
|
|
|
|
|
keywords = ["sm2", "sm3", "sm4", "sm9", "gmssl"]
|
2026-03-07 19:27:41 +08:00
|
|
|
readme = "README.md"
|
2026-03-07 13:03:10 +08:00
|
|
|
exclude = [
|
|
|
|
|
"benches/",
|
|
|
|
|
"tests/",
|
|
|
|
|
"docs/",
|
|
|
|
|
".github/",
|
2026-03-07 19:27:41 +08:00
|
|
|
"scripts/",
|
|
|
|
|
"reference/",
|
2026-03-07 13:03:10 +08:00
|
|
|
"*.sh",
|
2026-03-07 19:27:41 +08:00
|
|
|
"*.md",
|
|
|
|
|
"!README.md",
|
|
|
|
|
"!CHANGELOG.md",
|
|
|
|
|
"!SECURITY.md",
|
|
|
|
|
".claude*",
|
2026-03-07 13:03:10 +08:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[lib]
|
|
|
|
|
name = "libsmx"
|
|
|
|
|
path = "src/lib.rs"
|
|
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
|
crypto-bigint = { version = "0.6", default-features = false }
|
|
|
|
|
subtle = { version = "2.6", default-features = false }
|
|
|
|
|
zeroize = { version = "1.8", default-features = false, features = ["derive"] }
|
|
|
|
|
rand_core = { version = "0.6", default-features = false }
|
|
|
|
|
|
|
|
|
|
[features]
|
|
|
|
|
default = ["alloc"]
|
|
|
|
|
alloc = []
|
|
|
|
|
std = ["alloc", "rand_core/std"]
|
|
|
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
|
hex = "0.4"
|
|
|
|
|
criterion = { version = "0.5", features = ["html_reports"] }
|
|
|
|
|
rand = "0.8"
|
|
|
|
|
sm9_core = "0.5.0"
|
|
|
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
|
name = "sm2_bench"
|
|
|
|
|
harness = false
|
|
|
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
|
name = "sm3_bench"
|
|
|
|
|
harness = false
|
|
|
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
|
name = "sm4_bench"
|
|
|
|
|
harness = false
|
|
|
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
|
name = "sm9_bench"
|
|
|
|
|
harness = false
|