1 Commits

Author SHA1 Message Date
huangxt 36c2742777 发布 v0.1.1
- 修复 no_std 测试编译错误
- MSRV 升级至 1.83.0
- 使用 Rust 1.83+ 内置 div_ceil 方法
- 优化 CI 安全扫描脚本
2026-03-07 21:32:20 +08:00
4 changed files with 39 additions and 3 deletions
+18
View File
@@ -5,6 +5,23 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.1.1] - 2025-03-07
### Fixed
- Fixed `cargo test --no-default-features --lib` compilation error
- SM3 tests: removed alloc dependency, use manual hex parsing
- SM4 modes tests: added `#[cfg(feature = "alloc")]`
### Changed
- MSRV raised to 1.83.0 (required by crypto-bigint 0.6.x for ConstMontyForm constant-time Montgomery arithmetic)
- Use Rust 1.83+ built-in `div_ceil` method instead of manual implementation
### CI
- Optimized sanity_check.sh to skip test code, avoiding false positives
## [0.1.0] - 2025-03-07
### Added
@@ -53,4 +70,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- XTS: reject non-16-byte-aligned input instead of silently truncating
- SM9 `hash_to_range`: replaced variable-iteration `while` loop with constant-time conditional select
[0.1.1]: https://github.com/kintaiW/libsmx/releases/tag/v0.1.1
[0.1.0]: https://github.com/kintaiW/libsmx/releases/tag/v0.1.0
+18
View File
@@ -5,6 +5,23 @@
格式基于 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/)
本项目遵循 [语义化版本](https://semver.org/lang/zh-CN/)。
## [0.1.1] - 2025-03-07
### 修复
- 修复 `cargo test --no-default-features --lib` 编译错误
- SM3 测试:移除 alloc 依赖,改用手动十六进制解析
- SM4 modes 测试:添加 `#[cfg(feature = "alloc")]`
### 变更
- MSRV 提升至 1.83.0crypto-bigint 0.6.x 的 ConstMontyForm 常量时间 Montgomery 算术所需)
- 使用 Rust 1.83+ 内置 `div_ceil` 方法替代手动实现
### CI
- 优化 sanity_check.sh 跳过测试代码,避免误报
## [0.1.0] - 2025-03-07
### 新增
@@ -53,4 +70,5 @@
- XTS:拒绝非 16 字节对齐输入,而非静默截断
- SM9 `hash_to_range`:用常量时间条件选择替换可变迭代 `while` 循环
[0.1.1]: https://github.com/kintaiW/libsmx/releases/tag/v0.1.1
[0.1.0]: https://github.com/kintaiW/libsmx/releases/tag/v0.1.0
Generated
+2 -2
View File
@@ -1,6 +1,6 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
version = 4
[[package]]
name = "aho-corasick"
@@ -422,7 +422,7 @@ checksum = "6800badb6cb2082ffd7b6a67e6125bb39f18782f793520caee8cb8846be06112"
[[package]]
name = "libsmx"
version = "0.1.0"
version = "0.1.1"
dependencies = [
"criterion",
"crypto-bigint",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "libsmx"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
rust-version = "1.83.0"
license = "Apache-2.0"