2580571881
新增功能: - SM2 密钥交换:GB/T 32918.3 完整协议(exchange_a/b)、ECDH - SM2 DER 编解码:签名 DER、SEC1/PKCS#8 私钥解析 - SM2 便捷 API:sign_message/verify_message 自动计算 Z 值 - HKDF-SM3:RFC 5869 兼容的 HKDF - SM3 Hasher 增强:reset/finalize_reset 流式复用 - SM4 AEAD 合并格式:GCM/CCM combined(TLS 格式) 文档更新: - CHANGELOG 添加 v0.2.1 变更记录
65 lines
1.4 KiB
TOML
65 lines
1.4 KiB
TOML
[package]
|
|
name = "libsmx"
|
|
version = "0.2.1"
|
|
edition = "2021"
|
|
rust-version = "1.83.0"
|
|
license = "Apache-2.0"
|
|
description = "Pure-Rust, no_std, constant-time SM2/SM3/SM4/SM9 Chinese cryptography (GB/T 32918/32905/32907/38635)"
|
|
repository = "https://github.com/kintaiW/libsmx"
|
|
documentation = "https://docs.rs/libsmx"
|
|
homepage = "https://github.com/kintaiW/libsmx"
|
|
categories = ["cryptography", "no-std"]
|
|
keywords = ["sm2", "sm3", "sm4", "sm9", "gmssl"]
|
|
readme = "README.md"
|
|
exclude = [
|
|
"benches/",
|
|
"tests/",
|
|
"docs/",
|
|
".github/",
|
|
"scripts/",
|
|
"reference/",
|
|
"*.sh",
|
|
"*.md",
|
|
"!README.md",
|
|
"!CHANGELOG.md",
|
|
"!SECURITY.md",
|
|
".claude*",
|
|
]
|
|
|
|
[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
|