Skip to content

v1.23.1-3

Compare
Choose a tag to compare
@microsoft-golang-bot microsoft-golang-bot released this 25 Sep 21:58
· 148 commits to microsoft/main since this release
adfc928

Microsoft build of Go v1.23.1-3

What's Changed

  • [release-branch.go1.23] Update CNG backend to ms-go1.22-support b29b5cde7fdd by @dagood in #1334
    • Applies this fix: microsoft/go-crypto-winnative#58

      Go's DES and 3DES implementations use the ECB chaining mode. Unfortunately, CNG defaults to CBC chaining mode, and we were not overriding that property when instantiating DES and 3DES keys.

      This PR fixes this mismatch by honoring Go's chaining mode together with a new extensive test suite that ensures we don't regress.

      This a breaking change: data longer than the DES or 3DES block size (8 bytes and 24 bytes respectively) encrypted with the CNG backend won't be decryptable after this fix. Note that the Microsoft Go toolchain has implemented DES and 3DES using the CNG backend since Go 1.22.

      To work around this issue, please follow these steps:

      1. Decrypt the existing encrypted data using a Microsoft Go toolchain that doesn't contain the fix.
      2. Encrypt the just-decrypted data using a Microsoft Go toolchain that contains the fix.

Full Changelog: v1.23.1-2...v1.23.1-3