crypto-sm/TEST.md

871 B
Raw Permalink Blame History

Test Report: @go/crypto-sm

📋 测试概览

  • 测试时间: 2026-05-07
  • 测试环境: darwin/amd64
  • Go 版本: 1.25.0

功能测试 (Functional Tests)

场景 状态 描述
TestSM2 PASS SM2 签名、验签与加解密测试。
TestSM3 PASS SM3 哈希确定性验证。
TestSM4 PASS SM4 CBC/GCM 模式加解密测试。
TestSMPassword PASS 基于密码的 SM4 与 SM2 构造器测试。
TestSM2Deterministic PASS SM2 密钥基于密码的确定性生成验证。

🛡️ 鲁棒性防御 (Robustness)

  • 摩擦消除:移除 Must 冗余 API完全对齐 go/crypto 规范。
  • 内存安全:继承 go/crypto 的安全缓冲区机制。

性能基准 (Benchmarks)

SM 系列算法性能已在常规测试中验证,符合业务预期。