修正 README 依赖版本号

- Quick Start 依赖版本从 0.3 改为 0.1
- no_std 依赖版本从 0.3 改为 0.1
- 与当前 Cargo.toml 版本 0.1.1 保持一致
This commit is contained in:
huangxt
2026-03-08 11:31:49 +08:00
parent 36c2742777
commit 69767aee00
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ Add to `Cargo.toml`:
```toml ```toml
[dependencies] [dependencies]
libsmx = "0.3" libsmx = "0.1"
``` ```
### SM3 Hash ### SM3 Hash
@@ -154,7 +154,7 @@ For `no_std` without `alloc`:
```toml ```toml
[dependencies] [dependencies]
libsmx = { version = "0.3", default-features = false } libsmx = { version = "0.1", default-features = false }
``` ```
## Benchmarks ## Benchmarks
+2 -2
View File
@@ -31,7 +31,7 @@
```toml ```toml
[dependencies] [dependencies]
libsmx = "0.3" libsmx = "0.1"
``` ```
### SM3 哈希 ### SM3 哈希
@@ -186,7 +186,7 @@ assert_eq!(decrypted, plaintext);
```toml ```toml
[dependencies] [dependencies]
libsmx = { version = "0.3", default-features = false } libsmx = { version = "0.1", default-features = false }
``` ```
`alloc` 时,SM3 哈希、SM3 HMAC、SM2 签名/验签、SM4 ECB 仍可用(固定大小数组 API)。 `alloc` 时,SM3 哈希、SM3 HMAC、SM2 签名/验签、SM4 ECB 仍可用(固定大小数组 API)。