From 36c274277782461dd9b5190579ebe0b7e1aaf631 Mon Sep 17 00:00:00 2001 From: huangxt Date: Sat, 7 Mar 2026 21:32:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=83=20v0.1.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复 no_std 测试编译错误 - MSRV 升级至 1.83.0 - 使用 Rust 1.83+ 内置 div_ceil 方法 - 优化 CI 安全扫描脚本 --- CHANGELOG.md | 18 ++++++++++++++++++ CHANGELOG.zh-CN.md | 18 ++++++++++++++++++ Cargo.lock | 4 ++-- Cargo.toml | 2 +- 4 files changed, 39 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9581e19..72bd8d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index b27d4bf..b6f70f7 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -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.0(crypto-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 diff --git a/Cargo.lock b/Cargo.lock index eca933e..01da252 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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", diff --git a/Cargo.toml b/Cargo.toml index 3786604..bc44f1d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"