Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: golang/crypto
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.38.0
Choose a base ref
...
head repository: golang/crypto
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.39.0
Choose a head ref
  • 12 commits
  • 40 files changed
  • 5 contributors

Commits on May 12, 2025

  1. x509roots/fallback: update bundle

    This is an automated CL which updates the NSS root bundle.
    
    [git-generate]
    go generate ./x509roots
    
    Change-Id: If1970af8da68ead595dc3fa7dd79a8555a5f09c5
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/668576
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    Reviewed-by: Roland Shoemaker <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Auto-Submit: Gopher Robot <[email protected]>
    gopherbot committed May 12, 2025
    Configuration menu
    Copy the full SHA
    9f6bf84 View commit details
    Browse the repository at this point in the history
  2. bcrypt: update InvalidCostError message to describe cost range inclusive

    Change InvalidCostError string to explicitly state cost bounds
    range as inclusive, rather than using parentheses that might
    imply an exclusive range.
    
    Change-Id: Ie5e7d53ef4217c8560e6a7fe23e3d65ecc24a2a3
    GitHub-Last-Rev: b49002b
    GitHub-Pull-Request: #300
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/609455
    Reviewed-by: Daniel McCarney <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: Cherry Mui <[email protected]>
    Reviewed-by: Michael Knyszek <[email protected]>
    redwrasse authored and cpu committed May 12, 2025
    Configuration menu
    Copy the full SHA
    9dbbcf0 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2025

  1. ssh: export supported algorithms

    Fixes golang/go#61537
    
    Change-Id: If3478121e3ae445391e3faeceeb889d75e9e3214
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/531935
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Auto-Submit: Nicola Murino <[email protected]>
    Reviewed-by: Cherry Mui <[email protected]>
    Reviewed-by: Michael Knyszek <[email protected]>
    Reviewed-by: Filippo Valsorda <[email protected]>
    drakkan authored and gopherbot committed May 15, 2025
    Configuration menu
    Copy the full SHA
    ac58737 View commit details
    Browse the repository at this point in the history
  2. ssh: automatically add [email protected] KEX alias

    If the key exchange method curve25519-sha256 is configured, automatically
    add the [email protected] alias to ensure compatibility with
    OpenSSH versions up to 7.2, which recognize only the older vendor-specific
    name.
    
    Change-Id: If50ab2c49179db949ba1b986f7bb0e153cc7f897
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/669716
    Auto-Submit: Nicola Murino <[email protected]>
    Reviewed-by: Cherry Mui <[email protected]>
    Reviewed-by: Carlos Amedee <[email protected]>
    Reviewed-by: Filippo Valsorda <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    drakkan authored and gopherbot committed May 15, 2025
    Configuration menu
    Copy the full SHA
    78a1fd7 View commit details
    Browse the repository at this point in the history
  3. ssh: expose negotiated algorithms

    Fixes golang/go#58523
    Fixes golang/go#46638
    
    Change-Id: Ic64bd2fdd6e9ec96acac3ed4be842e2fbb15231d
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/538235
    Reviewed-by: Filippo Valsorda <[email protected]>
    Auto-Submit: Nicola Murino <[email protected]>
    Reviewed-by: Michael Knyszek <[email protected]>
    Reviewed-by: Cherry Mui <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    drakkan authored and gopherbot committed May 15, 2025
    Configuration menu
    Copy the full SHA
    e944286 View commit details
    Browse the repository at this point in the history
  4. ssh: add server side support for Diffie Hellman Group Exchange

    We add this support for the following reasons:
    
    - We are planning to expose recommended (secure) vs. supported (works,
      not necessarily recommended) algorithms. The DHGEX kex is currently
      only exposed as a client-side kex. To simplify the calling convention
      for this follow-on, we expose the server side too.
    - Some clients are quite inflexible with reference to kex algorithms
      choice, for example they offer:
    
      diffie-hellman-group-exchange-sha256, diffie-hellman-group-exchange-sha1,
      diffie-hellman-group14-sha1, diffie-hellman-group1-sha1
    
      therefore DHGEX helps interoperability.
    
    We do not recommend the DHGEX kex as a whole:
    
    - the negotiation requires an extra round trip
    - the server must generate parameters (slow) or hardcode them, which
      defeats the security benefit over traditional DH.
    
    In this implementation we hardcode sending Oakley Group 14, Oakley
    Group 15 or Oakley Group 16 based on the requested max size.
    
    Users that are concerned with security of classical DH kex should
    migrate to kex based on EC or Ed25519.
    
    Fixes golang/go#54743
    
    Change-Id: I127822e90efc36821af4aca679931f40a2023021
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/532415
    Reviewed-by: Michael Knyszek <[email protected]>
    Auto-Submit: Nicola Murino <[email protected]>
    Reviewed-by: Filippo Valsorda <[email protected]>
    Reviewed-by: Han-Wen Nienhuys <[email protected]>
    Reviewed-by: Cherry Mui <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    drakkan authored and gopherbot committed May 15, 2025
    Configuration menu
    Copy the full SHA
    ebc8e46 View commit details
    Browse the repository at this point in the history

Commits on May 28, 2025

  1. acme: remove dead code

    The private encodePem() and unique() functions under the acme package
    had no call-sites and so can be removed.
    
    Change-Id: Ic617392e7cc9b9e795456626a623ba02df108694
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/676875
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: Roland Shoemaker <[email protected]>
    Auto-Submit: Daniel McCarney <[email protected]>
    Reviewed-by: Michael Knyszek <[email protected]>
    cpu authored and gopherbot committed May 28, 2025
    Configuration menu
    Copy the full SHA
    73f6362 View commit details
    Browse the repository at this point in the history

Commits on May 29, 2025

  1. acme: return err from deprecated TLS-SNI-[01|02] functions

    The TLSSNI01ChallengeCert and TLSSNI02ChallengeCert functions have been
    marked deprecated since 2022. The package documentation indicates
    pre-RFC 8555 functionality is retained for compilation success, but will
    return errors. This commit makes these two deprecated functions match
    that description.
    
    No meaningful support for these draft standard challenge types exists
    in the ACME ecosystem, and they are insecure for use in shared hosting
    environments.
    
    Change-Id: I1c17980a0630092c70eb971b3453a0f115834be0
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/676835
    Auto-Submit: Daniel McCarney <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: Roland Shoemaker <[email protected]>
    Reviewed-by: Michael Knyszek <[email protected]>
    cpu authored and gopherbot committed May 29, 2025
    Configuration menu
    Copy the full SHA
    18228cd View commit details
    Browse the repository at this point in the history

Commits on May 31, 2025

  1. x509roots/fallback: move parsing code to a non-generated file

    For golang/go#73691
    
    Change-Id: I3e2b09055c39286d863fe70ca3bd72a839e25d0a
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/676215
    Reviewed-by: Michael Knyszek <[email protected]>
    Reviewed-by: Roland Shoemaker <[email protected]>
    Reviewed-by: Sean Liao <[email protected]>
    Auto-Submit: Sean Liao <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    mateusz834 authored and gopherbot committed May 31, 2025
    Configuration menu
    Copy the full SHA
    eac7cf0 View commit details
    Browse the repository at this point in the history
  2. x509roots/fallback: add init time benchmark

    goos: linux
    goarch: amd64
    pkg: golang.org/x/crypto/x509roots/fallback
    cpu: AMD Ryzen 5 4600G with Radeon Graphics
                │ /tmp/before │
                │   sec/op    │
    InitTime-12   1.726m ± 0%
    
                │ /tmp/before  │
                │     B/op     │
    InitTime-12   1.151Mi ± 0%
    
                │ /tmp/before │
                │  allocs/op  │
    InitTime-12   11.35k ± 0%
    
    For golang/go#73691
    
    Change-Id: Ic932bd7835e50dd5c6adbdf684644afa49bddebc
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/676216
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: Roland Shoemaker <[email protected]>
    Reviewed-by: Sean Liao <[email protected]>
    Auto-Submit: Sean Liao <[email protected]>
    Reviewed-by: Michael Knyszek <[email protected]>
    mateusz834 authored and gopherbot committed May 31, 2025
    Configuration menu
    Copy the full SHA
    4f9f0ca View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2025

  1. go.mod: update golang.org/x dependencies

    Update golang.org/x dependencies to their latest tagged versions.
    
    Change-Id: Icbe0bf922207aefa5ee047a35dfb71843ec75306
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/679135
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    Reviewed-by: David Chase <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Auto-Submit: Gopher Robot <[email protected]>
    gopherbot committed Jun 5, 2025
    Configuration menu
    Copy the full SHA
    9bab967 View commit details
    Browse the repository at this point in the history
  2. ssh/test: skip KEX test if unsupported by system SSH client

    Skip the key exchange test when using the system's ssh CLI if the
    required KEX algorithm (e.g., mlkem768x25519-sha256) is not supported.
    This is determined by running ssh -Q kex and checking for the presence
    of the target algorithm.
    Prevents false test failures in CI environments with older or limited
    SSH implementations.
    
    Cq-Include-Trybots: luci.golang.try:x_crypto-gotip-darwin-amd64-longtest,x_crypto-gotip-linux-amd64-longtest,x_crypto-gotip-windows-amd64-longtest
    Change-Id: I3fac703ec70559e18b30d5fff88274335a7c3952
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/679195
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    Reviewed-by: Carlos Amedee <[email protected]>
    drakkan authored and FiloSottile committed Jun 5, 2025
    Configuration menu
    Copy the full SHA
    3bf9d2a View commit details
    Browse the repository at this point in the history
Loading