crypto/CHANGELOG.md

14 lines
960 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Changelog: @go/crypto
## [v1.0.0] - 2026-04-22
### Added
- **核心算法支持**:提供 AES (CBC/GCM)、RSA (PSS/OAEP/PKCS1v15)、ECDSA、Ed25519、X25519 全量主流算法。
- **混合加密模式**:针对 ECDSA 和 X25519 实现了 ECDH + HKDF + AES-GCM/CBC 的自动化混合加解密。
- **填充算法增强**:新增 ANSI X9.23 填充支持,完善 PKCS#7 (Pkcs5) 填充。
- **内存安全集成**:深度集成 `@go/safe`,提供 `AndEraseKey` 构造器,实现密钥构造即擦除原始明文,杜绝内存残留。
- **混淆防御机制**:对称加密支持超长密钥自动截断适配,增强内存指纹抗性。
- **高性能模式 (FastMode)**:非对称加密支持可选的对象缓存模式,显著降低高频调用下的解析开销。
- **便捷 Hash 包装**:提供 MD5/SHA 家族的一键式 Hex/Base64 返回接口。
- **兼容性语义**1:1 还原 `ssgo/u` 函数命名,确保业务迁移无感知。