Skip to content

chore(deps): bump the minor-and-patch group with 2 updates - #49

Merged
cyclone-github merged 1 commit into
mainfrom
dependabot/go_modules/minor-and-patch-e44aede730
Nov 16, 2026
Merged

cyclone-github merged 1 commit into
mainfrom
dependabot/go_modules/minor-and-patch-e44aede730

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 16, 2026

Copy link
Copy Markdown
Contributor

Bumps the minor-and-patch group with 2 updates: github.com/emmansun/gmsm and golang.org/x/crypto.

Updates github.com/emmansun/gmsm from 0.45.2 to 0.45.3

Release notes

Sourced from github.com/emmansun/gmsm's releases.

v0.45.3 (2026-11-11)

本次发布修复了 SM2 短明文加密的偶发解密失败问题,新增 ML-KEM 的 X.509 密钥支持,并改进 LoongArch 平台实现。

问题修复

  • SM2 加密:修复 KDF 输出全零后重试时公钥点被覆盖的问题。此前重试可能生成无法正常解密的密文,短明文更容易触发;1 字节明文的触发概率约为 1/256。新增确定性回归测试。#668
  • SM2 内部解密:避免修改输入密文的 C1 点,确保同一内部密文对象可以重复解密。新增成功及认证失败场景下的输入保留测试。此修复消除内部对象复用副作用,不影响公开 API 的调用方式。
  • CCM:在 Seal 和 Open 中增加输出缓冲区与 AAD 的重叠检查,防止认证前覆盖 AAD;新增重叠检查及 AAD 长度编码边界测试。

新增功能

  • smx509:支持 ML-KEM-512、ML-KEM-768 和 ML-KEM-1024 公钥的 PKIX 编解码,以及携带这些公钥的证书创建和解析。
  • 支持 ML-KEM 私钥的 PKCS#8 编解码:解析种子、展开密钥及二者组合形式,组合形式会检查一致性;序列化使用种子形式。
  • ML-KEM 证书若包含 KeyUsage 扩展,仅允许设置 keyEncipherment。

平台与维护

  • LoongArch:启用 SM4 优化块加密配合通用 Go GHASH 的 GCM 路径,并扩展差分测试覆盖。
  • 使用 ALSLV 精简 LoongArch 上 SM2 域平方及 SM9/bn256 域运算的汇编实现。
  • 补充 smx509 手工维护指南,更新 CI 与安全扫描相关 GitHub Actions 依赖。

升级提示 建议使用 SM2 加密,尤其涉及短明文的用户升级。CCM 输出缓冲区与 AAD 重叠的调用现在会触发 panic;此类调用本身不符合 cipher.AEAD 的使用约定。


This release fixes intermittent SM2 decryption failures when encrypting short messages, adds ML-KEM X.509 key support, and improves LoongArch implementations.

Bug Fixes

  • SM2 encryption: Preserve the original public point when retrying encryption after an all-zero KDF result. Previously, a retry could produce ciphertext that failed decryption. Short messages were more likely to trigger this issue, with an approximate probability of 1 in 256 for a one-byte message. Added a deterministic regression test. #668
  • SM2 internal decryption: Preserve the input ciphertext’s C1 point so that the same internal ciphertext object can be decrypted repeatedly. Added input-preservation tests for successful decryption and authentication failure. This removes an internal object-reuse side effect without changing public API usage.
  • CCM: Reject overlapping output and AAD buffers in Seal and Open, preventing AAD from being overwritten before authentication. Added overlap and AAD length-encoding boundary tests.

New Features

  • smx509: Add PKIX public key encoding and decoding for ML-KEM-512, ML-KEM-768, and ML-KEM-1024, along with certificate creation and parsing for these public keys.
  • Add PKCS#8 private key support for ML-KEM. Parsing accepts seed-only, expanded-key-only, and combined forms, with consistency validation for the combined form. Marshaling uses the seed form.
  • When present, the KeyUsage extension in an ML-KEM certificate may contain only keyEncipherment.

Platform and Maintenance

  • LoongArch: Enable the SM4 GCM path combining optimized block encryption with generic Go GHASH, and extend differential test coverage.
  • Simplify LoongArch assembly for SM2 field squaring and SM9/bn256 field arithmetic using ALSLV.
  • Add manual maintenance guidance for smx509 and update CI and security-scanning GitHub Actions dependencies.

Upgrade Notes Users of SM2 encryption, particularly for short messages, are encouraged to upgrade. CCM calls with overlapping output and AAD buffers now panic; such calls already violate the cipher.AEAD usage contract.

Commits
  • 688a8a5 Merge pull request #672 from emmansun/develop
  • eea521c Merge pull request #671 from emmansun/main
  • f4b300d fix(sm2): preserve ciphertext during decryption
  • fb52cf7 Merge pull request #670 from emmansun/develop
  • 6cdefd5 Merge pull request #669 from emmansun/main
  • 764ae5e fix(sm2): preserve public point across encryption retries
  • 8f8b6c1 Merge pull request #667 from emmansun/dependabot/github_actions/develop/peter...
  • ac48fc5 Merge pull request #666 from emmansun/dependabot/github_actions/develop/step-...
  • 0fad765 build(deps): bump peter-evans/create-pull-request from 8.1.1 to 8.1.2
  • ae9afa1 build(deps): bump step-security/harden-runner from 2.22.3 to 2.22.4
  • Additional commits viewable in compare view

Updates golang.org/x/crypto from 0.58.0 to 0.59.0

Commits
  • 6c966a7 ssh: quote remaining peer-controlled strings in error messages
  • bc46121 ssh: fail OpenChannel when the connection is lost
  • 7e0915c ssh/test: connect to sshd over a loopback TCP connection
  • bfa619e ssh/agent: use a short socket path for ssh-agent in tests
  • 4e10f38 go.mod: update golang.org/x dependencies
  • a1058eb ssh: remove DSA support
  • d580ab7 ssh: report algorithms of the last completed key exchange
  • d1f31f6 ssh/knownhosts: skip lines that cannot be parsed
  • 04c6b4f ssh: return rest from ParseKnownHosts on parse errors
  • 3d426ad ssh: separately count rejected public key queries towards MaxAuthTries
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the minor-and-patch group with 2 updates: [github.com/emmansun/gmsm](https://github.com/emmansun/gmsm) and [golang.org/x/crypto](https://github.com/golang/crypto).


Updates `github.com/emmansun/gmsm` from 0.45.2 to 0.45.3
- [Release notes](https://github.com/emmansun/gmsm/releases)
- [Commits](emmansun/gmsm@v0.45.2...v0.45.3)

Updates `golang.org/x/crypto` from 0.58.0 to 0.59.0
- [Commits](golang/crypto@v0.58.0...v0.59.0)

---
updated-dependencies:
- dependency-name: github.com/emmansun/gmsm
  dependency-version: 0.45.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: golang.org/x/crypto
  dependency-version: 0.59.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Nov 16, 2026
@cyclone-github cyclone-github self-assigned this Nov 16, 2026
@cyclone-github
cyclone-github merged commit e2c7c40 into main Nov 16, 2026
2 checks passed
@cyclone-github
cyclone-github deleted the dependabot/go_modules/minor-and-patch-e44aede730 branch November 16, 2026 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant