8000 Comparing v0.37.0...v0.38.0 · golang/crypto · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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.37.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.38.0
Choose a head ref
  • 17 commits
  • 59 files changed
  • 8 contributors

Commits on Apr 11, 2025

  1. ssh: add integration tests against a reference implementation

    As in crypto/tls, we record the connection against a reference
    implementation, OpenSSH in our case, and run part of our integration
    tests by replaying these recorded SSH connections.
    
    Change-Id: If042b5f650b267bd3ede34a05ec3a6fa6d1a86b3
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/644436
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Carlos Amedee <carlos@golang.org>
    Auto-Submit: Filippo Valsorda <filippo@golang.org>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Reviewed-by: Daniel McCarney <daniel@binaryparadox.net>
    drakkan authored and gopherbot committed Apr 11, 2025
    Configuration menu
    Copy the full SHA
    6b13eef View commit details
    Browse the repository at this point in the history
  2. ssh: add mlkem768x25519-sha256 Key Exchange algorithm

    mlkem768x25519-sha256 requires the crypto/mlkem package introduced in
    Go 1.24.
    
    Thanks to Damien Miller for posting an early version to the OpenSSH
    mailing list.
    
    Co-authored-by: Damien Miller <djm@mindrot.org>
    Change-Id: I4235cf906903524a9a97283834cc8f43b5f76f91
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/646075
    Reviewed-by: Filippo Valsorda <filippo@golang.org>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Reviewed-by: Carlos Amedee <carlos@golang.org>
    Auto-Submit: Nicola Murino <nicola.murino@gmail.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    2 people authored and gopherbot committed Apr 11, 2025
    Configuration menu
    Copy the full SHA
    c96bba2 View commit details
    Browse the repository at this point in the history
  3. acme: use built-in max/min to simplify the code

    Change-Id: I6ba8d07b9e53b01f25f4c1c8eac629aaa47de3a1
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/664836
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Roland Shoemaker <roland@golang.org>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    cuishuang authored and rolandshoemaker committed Apr 11, 2025
    Configuration menu
    Copy the full SHA
    4bc0711 View commit details
    Browse the repository at this point in the history
  4. blake2s: add loong64 SIMD implementation

    The performance gains on Loongson 3A6000 and 3A5000 are as follows:
    
    goos: linux
    goarch: loong64
    pkg: golang.org/x/crypto/blake2s
    cpu: Loongson-3A6000-HV @ 2500.00MHz
            |  bench.old  |              bench.new              |
            |   sec/op    |   sec/op     vs base                |
    Write64   277.8n ± 0%   113.5n ± 0%  -59.14% (p=0.000 n=10)
    Write1K   4.246µ ± 0%   1.736µ ± 0%  -59.11% (p=0.000 n=10)
    Sum64     289.9n ± 0%   137.7n ± 0%  -52.51% (p=0.000 n=10)
    Sum1K     4.265µ ± 0%   1.758µ ± 0%  -58.78% (p=0.000 n=10)
    geomean   1.099µ        467.3n       -57.48%
    
            |  bench.old   |               bench.new               |
            |     B/s      |     B/s       vs base                 |
    Write64   219.7Mi ± 0%   537.9Mi ± 0%  +144.86% (p=0.000 n=10)
    Write1K   230.0Mi ± 0%   562.6Mi ± 0%  +144.62% (p=0.000 n=10)
    Sum64     210.5Mi ± 0%   443.3Mi ± 0%  +110.59% (p=0.000 n=10)
    Sum1K     229.0Mi ± 0%   555.5Mi ± 0%  +142.64% (p=0.000 n=10)
    geomean   222.1Mi        522.5Mi       +135.21%
    
    goos: linux
    goarch: loong64
    pkg: golang.org/x/crypto/blake2s
    cpu: Loongson-3A5000 @ 2500.00MHz
            |  bench.old  |              bench.new              |
            |   sec/op    |   sec/op     vs base                |
    Write64   373.8n ± 0%   175.0n ± 0%  -53.18% (p=0.000 n=10)
    Write1K   5.763µ ± 0%   2.595µ ± 0%  -54.97% (p=0.000 n=10)
    Sum64     397.8n ± 0%   205.7n ± 0%  -48.29% (p=0.000 n=10)
    Sum1K     5.787µ ± 0%   2.627µ ± 0%  -54.61% (p=0.000 n=10)
    geomean   1.492µ        703.8n       -52.83%
    
            |  bench.old   |               bench.new               |
            |  
    10000
       B/s      |     B/s       vs base                 |
    Write64   163.3Mi ± 0%   348.9Mi ± 0%  +113.62% (p=0.000 n=10)
    Write1K   169.5Mi ± 0%   376.3Mi ± 0%  +122.09% (p=0.000 n=10)
    Sum64     153.4Mi ± 0%   296.7Mi ± 0%   +93.37% (p=0.000 n=10)
    Sum1K     168.7Mi ± 0%   371.8Mi ± 0%  +120.33% (p=0.000 n=10)
    geomean   163.6Mi        346.9Mi       +112.03%
    
    Change-Id: Id91ffbefc538bce294875d72e6cde72fea43afbf
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/661215
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Reviewed-by: Carlos Amedee <carlos@golang.org>
    Auto-Submit: Carlos Amedee <carlos@golang.org>
    Reviewed-by: abner chenc <chenguoqi@loongson.cn>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    sophie-zhao authored and gopherbot committed Apr 11, 2025
    Configuration menu
    Copy the full SHA
    2ebaafc View commit details
    Browse the repository at this point in the history
  5. salsa20: add loong64 SIMD implementation

    The performance gains on Loongson 3A6000 and 3A5000 are as follows:
    
    goos: linux
    goarch: loong64
    pkg: golang.org/x/crypto/salsa20
    cpu: Loongson-3A6000-HV @ 2500.00MHz
          |  bench.old   |              bench.new              |
          |    sec/op    |   sec/op     vs base                |
    XOR1K   3175.0n ± 0%   435.4n ± 0%  -86.29% (p=0.000 n=20)
    
          |  bench.old   |               bench.new                |
          |     B/s      |      B/s       vs base                 |
    XOR1K   307.6Mi ± 0%   2242.7Mi ± 0%  +629.13% (p=0.000 n=20)
    
    goos: linux
    goarch: loong64
    pkg: golang.org/x/crypto/salsa20
    cpu: Loongson-3A5000 @ 2500.00MHz
          |  bench.old   |              bench.new              |
          |    sec/op    |   sec/op     vs base                |
    XOR1K   4125.0n ± 0%   864.0n ± 0%  -79.05% (p=0.000 n=20)
    
          |  bench.old   |               bench.new                |
          |     B/s      |      B/s       vs base                 |
    XOR1K   236.7Mi ± 0%   1130.3Mi ± 0%  +377.41% (p=0.000 n=20)
    
    Change-Id: Ib37f603e6654f1e3837985fad4b6dee10b5af993
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/663375
    Reviewed-by: Carlos Amedee <carlos@golang.org>
    Reviewed-by: abner chenc <chenguoqi@loongson.cn>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Auto-Submit: Carlos Amedee <carlos@golang.org>
    sophie-zhao authored and gopherbot committed Apr 11, 2025
    Configuration menu
    Copy the full SHA
    18f7707 View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2025

  1. chacha20: add loong64 SIMD implementation

    The performance of chacha20 has been greatly improved on 3A6000 and 3A5000.
    
    goos: linux
    goarch: loong64
    pkg: golang.org/x/crypto/chacha20
    cpu: Loongson-3A6000 @ 2500.00MHz
                     |  bench.old   |              bench.new              |
                     |    sec/op    |   sec/op     vs base                |
    ChaCha20/64         171.9n ± 0%   159.3n ± 0%   -7.33% (p=0.000 n=20)
    ChaCha20/256        592.2n ± 0%   142.8n ± 0%  -75.89% (p=0.000 n=20)
    ChaCha20/10x25      981.5n ± 0%   518.8n ± 0%  -47.14% (p=0.000 n=20)
    ChaCha20/4096       8.991µ ± 0%   1.732µ ± 0%  -80.74% (p=0.000 n=20)
    ChaCha20/100x40    10.651µ ± 0%   5.135µ ± 0%  -51.79% (p=0.000 n=20)
    ChaCha20/65536     143.43µ ± 0%   28.76µ ± 0%  -79.95% (p=0.000 n=20)
    ChaCha20/1000x65   146.17µ ± 0%   37.13µ ± 0%  -74.60% (p=0.000 n=20)
    geomean             5.721µ        1.962µ       -65.70%
    
                     |  bench.old   |               bench.new                |
                     |     B/s      |      B/s       vs base                 |
    ChaCha20/64        355.1Mi ± 0%    383.1Mi ± 0%    +7.89% (p=0.000 n=20)
    ChaCha20/256       412.2Mi ± 0%   1710.2Mi ± 0%  +314.86% (p=0.000 n=20)
    ChaCha20/10x25     242.9Mi ± 0%    459.6Mi ± 0%   +89.19% (p=0.000 n=20)
    ChaCha20/4096      434.5Mi ± 0%   2255.8Mi ± 0%  +419.22% (p=0.000 n=20)
    ChaCha20/100x40    358.1Mi ± 0%    742.9Mi ± 0%  +107.44% (p=0.000 n=20)
    ChaCha20/65536     435.8Mi ± 0%   2173.2Mi ± 0%  +398.72% (p=0.000 n=20)
    ChaCha20/1000x65   424.1Mi ± 0%   1669.4Mi ± 0%  +293.64% (p=0.000 n=20)
    geomean            373.9Mi         1.065Gi       +191.55%
    
    goos: linux
    goarch: loong64
    pkg: golang.org/x/crypto/chacha20
    cpu: Loongson-3A5000 @ 2500.00MHz
                     |  bench.old   |              bench.new              |
                     |    sec/op    |   sec/op     vs base                |
    ChaCha20/64         234.5n ± 0%   295.8n ± 0%  +26.14% (p=0.000 n=20)
    ChaCha20/256        782.0n ± 0%   274.6n ± 0%  -64.88% (p=0.000 n=20)
    ChaCha20/10x25     1340.0n ± 0%   752.7n ± 0%  -43.83% (p=0.000 n=20)
    ChaCha20/4096      11.744µ ± 0%   3.455µ ± 0%  -70.58% (p=0.000 n=20)
    ChaCha20/100x40    14.151µ ± 0%   7.435µ ± 0%  -47.46% (p=0.000 n=20)
    ChaCha20/65536     188.05µ ± 0%   54.33µ ± 0%  -71.11% (p=0.000 n=20)
    ChaCha20/1000x65   191.44µ ± 0%   66.29µ ± 0%  -65.37% (p=0.000 n=20)
    geomean             7.604µ        3.436µ       -54.81%
    
                     |  bench.old   |               bench.new                |
                     |     B/s      |      B/s       vs base                 |
    ChaCha20/64        260.3Mi ± 0%    206.3Mi ± 0%   -20.73% (p=0.000 n=20)
    ChaCha20/256       312.2Mi ± 0%    888.9Mi ± 0%  +184.75% (p=0.000 n=20)
    ChaCha20/10x25     177.9Mi ± 0%    316.8Mi ± 0%   +78.08% (p=0.000 n=20)
    ChaCha20/4096      332.6Mi ± 0%   1130.8Mi ± 0%  +239.95% (p=0.000 n=20)
    ChaCha20/100x40    269.6Mi ± 0%    513.1Mi ± 0%   +90.34% (p=0.000 n=20)
    ChaCha20/65536     332.4Mi ± 0%   1150.5Mi ± 0%  +246.16% (p=0.000 n=20)
    ChaCha20/1000x65   323.8Mi ± 0%    935.2Mi ± 0%  +188.81% (p=0.000 n=20)
    geomean            281.3Mi         622.6Mi       +121.31%
    
    Change-Id: I5386f2029122076c1d22a04610567e3df23877cd
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/636257
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: abner chenc <chenguoqi@loongson.cn>
    Reviewed-by: Carlos Amedee <carlos@golang.org>
    sophie-zhao authored and abner-chenc committed Apr 14, 2025
    Configuration menu
    Copy the full SHA
    953e809 View commit details
    Browse the repository at this point in the history
  2. argon2: add loong64 SIMD implementation

    The performance gains on Loongson 3A6000 and 3A5000 are as follows:
    
    goos: linux
    goarch: loong64
    pkg: golang.org/x/crypto/argon2
    cpu: Loongson-3A6000-HV @ 2500.00MHz
                                                 |  bench.old   |              bench.new              |
                                                 |    sec/op    |   sec/op     vs base                |
    Argon2i/_Time:_3_Memory:_32_MB,_Threads:_1     131.23m ± 0%   67.56m ± 1%  -48.52% (p=0.000 n=10)
    Argon2i/_Time:_4_Memory:_32_MB,_Threads:_1     171.28m ± 2%   90.20m ± 0%  -47.34% (p=0.000 n=10)
    Argon2i/_Time:_5_Memory:_32_MB,_Threads:_1      213.3m ± 0%   112.6m ± 0%  -47.21% (p=0.000 n=10)
    Argon2i/_Time:_3_Memory:_64_MB,_Threads:_4      269.5m ± 0%   147.2m ± 0%  -45.37% (p=0.000 n=10)
    Argon2i/_Time:_4_Memory:_64_MB,_Threads:_4      357.7m ± 0%   195.4m ± 0%  -45.36% (p=0.000 n=10)
    Argon2i/_Time:_5_Memory:_64_MB,_Threads:_4      449.8m ± 0%   243.8m ± 0%  -45.79% (p=0.000 n=10)
    Argon2d/_Time:_3,_Memory:_32_MB,_Threads:_1    126.56m ± 0%   67.43m ± 0%  -46.72% (p=0.000 n=10)
    Argon2d/_Time:_4,_Memory:_32_MB,_Threads:_1    168.57m ± 0%   90.04m ± 0%  -46.58% (p=0.000 n=10)
    Argon2d/_Time:_5,_Memory:_32_MB,_Threads:_1     210.5m ± 0%   112.7m ± 0%  -46.45% (p=0.000 n=10)
    Argon2d/_Time:_3,_Memory:_64_MB,_Threads:_4     264.8m ± 0%   145.0m ± 1%  -45.23% (p=0.000 n=10)
    Argon2d/_Time:_4,_Memory:_64_MB,_Threads:_4     353.8m ± 0%   193.7m ± 0%  -45.26% (p=0.000 n=10)
    Argon2d/_Time:_5,_Memory:_64_MB,_Threads:_4     444.4m ± 0%   242.3m ± 0%  -45.49% (p=0.000 n=10)
    Argon2id/_Time:_3,_Memory:_32_MB,_Threads:_1   126.89m ± 0%   66.62m ± 0%  -47.50% (p=0.000 n=10)
    Argon2id/_Time:_4,_Memory:_32_MB,_Threads:_1   169.02m ± 0%   89.07m ± 0%  -47.30% (p=0.000 n=10)
    Argon2id/_Time:_5,_Memory:_32_MB,_Threads:_1    210.7m ± 0%   111.0m ± 0%  -47.34% (p=0.000 n=10)
    Argon2id/_Time:_3,_Memory:_64_MB,_Threads:_4    267.6m ± 1%   145.8m ± 0%  -45.51% (p=0.000 n=10)
    Argon2id/_Time:_4,_Memory:_64_MB,_Threads:_4    355.1m ± 0%   194.1m ± 0%  -45.34% (p=0.000 n=10)
    Argon2id/_Time:_5,_Memory:_64_MB,_Threads:_4    443.6m ± 0%   242.5m ± 0%  -45.33% (p=0.000 n=10)
    geomean                                         240.8m        129.3m       -46.32%
    
    goos: linux
    goarch: loong64
    pkg: golang.org/x/crypto/argon2
    cpu: Loongson-3A5000 @ 2500.00MHz
                                                 |  bench.old  |              bench.new              |
                                                 |   sec/op    |   sec/op     vs base                |
    Argon2i/_Time:_3_Memory:_32_MB,_Threads:_1     209.9m ± 1%   109.7m ± 2%  -47.75% (p=0.000 n=10)
    Argon2i/_Time:_4_Memory:_32_MB,_Threads:_1     278.1m ± 0%   143.7m ± 0%  -48.34% (p=0.000 n=10)
    Argon2i/_Time:_5_Memory:_32_MB,_Threads:_1     346.7m ± 0%   178.1m ± 0%  -48.63% (p=0.000 n=10)
    Argon2i/_Time:_3_Memory:_64_MB,_Threads:_4     455.3m ± 0%   240.8m ± 0%  -47.12% (p=0.000 n=10)
    Argon2i/_Time:_4_Memory:_64_MB,_Threads:_4     604.6m ± 0%   317.7m ± 0%  -47.45% (p=0.000 n=10)
    Argon2i/_Time:_5_Memory:_64_MB,_Threads:_4     754.8m ± 0%   395.4m ± 0%  -47.61% (p=0.000 n=10)
    Argon2d/_Time:_3,_Memory:_32_MB,_Threads:_1    206.9m ± 1%   107.6m ± 0%  -48.00% (p=0.000 n=10)
    Argon2d/_Time:_4,_Memory:_32_MB,_Threads:_1    274.3m ± 0%   141.8m ± 1%  -48.32% (p=0.000 n=10)
    Argon2d/_Time:_5,_Memory:_32_MB,_Threads:_1    342.4m ± 0%   175.6m ± 0%  -48.71% (p=0.000 n=10)
    Argon2d/_Time:_3,_Memory:_64_MB,_Threads:_4    450.2m ± 0%   237.9m ± 0%  -47.15% (p=0.000 n=10)
    Argon2d/_Time:_4,_Memory:_64_MB,_Threads:_4    597.7m ± 0%   314.0m ± 0%  -47.46% (p=0.000 n=10)
    Argon2d/_Time:_5,_Memory:_64_MB,_Threads:_4    745.8m ± 0%   390.7m ± 1%  -47.61% (p=0.000 n=10)
    Argon2id/_Time:_3,_Memory:_32_MB,_Threads:_1   207.6m ± 0%   107.9m ± 0%  -48.05% (p=0.000 n=10)
    Argon2id/_Time:_4,_Memory:_32_MB,_Threads:_1   275.0m ± 0%   142.0m ± 0%  -48.34% (p=0.000 n=10)
    Argon2id/_Time:_5,_Memory:_32_MB,_Threads:_1   342.9m ± 1%   176.0m ± 0%  -48.66% (p=0.000 n=10)
    Argon2id/_Time:_3,_Memory:_64_MB,_Threads:_4   450.6m ± 1%   238.5m ± 0%  -47.07% (p=0.000 n=10)
    Argon2id/_Time:_4,_Memory:_64_MB,_Threads:_4   598.5m ± 1%   314.6m ± 0%  -47.44% (p=0.000 n=10)
    Argon2id/_Time:_5,_Memory:_64_MB,_Threads:_4   746.4m ± 0%   391.0m ± 0%  -47.61% (p=0.000 n=10)
    geomean                                        398.6m        207.9m       -47.86%
    
    Change-Id: Iaa9d134d68dd2f0972fc5768d7e66f7b1ff0ebd3
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/657795
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: abner chenc <chenguoqi@loongson.cn>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Reviewed-by: Carlos Amedee <carlos@golang.org>
    sophie-zhao authored and abner-chenc committed Apr 14, 2025
    Configuration menu
    Copy the full SHA
    388684e View commit details
    Browse the repository at this point in the history
  3. Revert "blake2s: add loong64 SIMD implementation"

    This reverts CL 661215.
    
    Reason for revert: Does not build on 1.23 or 1.24
    
    Fixes #73354.
    
    Change-Id: I90abd8a3dabf5c0d9fd1062de3ba3e78ecb2f2e8
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/664796
    Reviewed-by: Carlos Amedee <carlos@golang.org>
    Auto-Submit: Michael Pratt <mpratt@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    prattmic authored and gopherbot committed Apr 14, 2025
    Configuration menu
    Copy the full SHA
    0091fc8 View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2025

  1. Revert "argon2: add loong64 SIMD implementation"

    This reverts CL 657795.
    
    Reason for revert: Does not build on 1.23 or 1.24
    
    For golang/go#73354.
    
    Change-Id: I69498f24b57bd6650c9d1f4c755922cfaaba4a84
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/665555
    Reviewed-by: abner chenc <chenguoqi@loongson.cn>
    Auto-Submit: Michael Pratt <mpratt@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    prattmic authored and gopherbot committed Apr 16, 2025
    Configuration menu
    Copy the full SHA
    7c35866 View commit details
    Browse the repository at this point in the history
  2. Revert "salsa20: add loong64 SIMD implementation"

    This reverts CL 663375.
    
    Reason for revert: Does not build on 1.23 or 1.24
    
    For golang/go#73354.
    
    Change-Id: I251d598423b83c01cc2e04ddf6f49ae14095fa7c
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/665535
    Auto-Submit: Michael Pratt <mpratt@google.com>
    Reviewed-by: abner chenc <chenguoqi@loongson.cn>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    prattmic authored and gopherbot committed Apr 16, 2025
    Configuration menu
    Copy the full SHA
    51f005c View commit details
    Browse the repository at this point in the history
  3. Revert "chacha20: add loong64 SIMD implementation"

    This reverts CL 636257.
    
    Reason for revert: Does not build on 1.23 or 1.24
    
    For golang/go#73354.
    
    Change-Id: Ie28d5c45930a8eacd5cabed64390ef674b3fb446
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/665536
    Reviewed-by: abner chenc <chenguoqi@loongson.cn>
    Auto-Submit: Michael Pratt <mpratt@google.com>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    prattmic authored and gopherbot committed Apr 16, 2025
    Configuration menu
    Copy the full SHA
    958cde8 View commit details
    Browse the repository at this point in the history
  4. acme/autocert: use standard functions to pick the cache directory

    acme/autocert currently has ad-hoc logic to find a reasonable default
    for a cache directory.
    
    Since that logic was written (in 2017), new functions were added to the
    os package to provide that functionality (in Go 1.13, 2019-09):
    `os.UserCacheDir` and `os.UserHomeDir`.
    
    This patch replaces the ad-hoc logic with a call to `os.UserCacheDir`.
    
    The fallback to `/` is kept, since it may be relied upon in some
    environments.
    
    Change-Id: I3bf692ca670b87bf3d329e5d3684eee15ed374aa
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/440195
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Reviewed-by: Roland Shoemaker <roland@golang.org>
    Auto-Submit: Sean Liao <sean@liao.dev>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Sean Liao <sean@liao.dev>
    albertito authored and gopherbot committed Apr 16, 2025
    Configuration menu
    Copy the full SHA
    a5f8048 View commit details
    Browse the repository at this point in the history
  5. ssh/test: skip unsupported tests on js/wasm

    This fixes the build on the js/wasm builder.
    
    Change-Id: Icd891cd38b9da07279b9afaa168f7c64c81e13fe
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/665095
    Auto-Submit: Nicola Murino <nicola.murino@gmail.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Reviewed-by: Roland Shoemaker <roland@golang.org>
    drakkan authored and gopherbot committed Apr 16, 2025
    Configuration menu
    Copy the full SHA
    1f7c62c View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2025

  1. acme: return error from pre-authorization when unsupported

    Check the directory's AuthzURL to see if the server supports
    pre-authorization. If it's empty, then the server is not advertising
    support and we can encounter other bugs. Better to return early and give
    a clear error to the caller.
    
    From https://www.rfc-editor.org/rfc/rfc8555#section-7.4.1
    
        If a CA wishes to allow pre-authorization within ACME, it can offer a
        "new authorization" resource in its directory by adding the field
        "newAuthz" with a URL for the newAuthz resource.
    
    Fixes golang/go#40839
    
    Change-Id: Id3e92e8e2ae3c57285183d37544dd59b4988b3be
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/661675
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
    Reviewed-by: Roland Shoemaker <roland@golang.org>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
    sigmavirus24 authored and gopherbot committed Apr 17, 2025
    Configuration menu
    Copy the full SHA
    3f311e4 View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2025

  1. ssh/test: enable Diffie-Hellman key exchange algorithms

    starting with OpenSSH 10, all Diffie-Hellman key exchange algorithms
    are disabled by default. To generate recordings, we must explicitly
    enable them.
    
    Change-Id: Icfbf46b30478f36d7040991e0f6324b9b4766aaf
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/665115
    Reviewed-by: Filippo Valsorda <filippo@golang.org>
    Auto-Submit: Nicola Murino <nicola.murino@gmail.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Reviewed-by: Michael Pratt <mpratt@google.com>
    drakkan authored and gopherbot committed Apr 18, 2025
    Configuration menu
    Copy the full SHA
    8819902 View commit details
    Browse the repository at this point in the history
  2. ssh/test: reset the random source before capturing a recording

    If a recording file exists but is invalid for any reason, the random
    source may have already been used, resulting in a recording that
    cannot be replayed.
    
    Change-Id: Ib81aaf163f5783fede2c14a0ac10a8d2af6019c6
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/664917
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Michael Pratt <mpratt@google.com>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Reviewed-by: Filippo Valsorda <filippo@golang.org>
    Auto-Submit: Nicola Murino <nicola.murino@gmail.com>
    drakkan authored and gopherbot committed Apr 18, 2025
    Configuration menu
    Copy the full SHA
    9c1aa6a View commit details
    Browse the repository at this point in the history

Commits on May 5, 2025

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

    Update golang.org/x dependencies to their latest tagged versions.
    
    Change-Id: I06b2bb01f1557af02a8bf172ee85973695506906
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/670095
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Auto-Submit: Gopher Robot <gobot@golang.org>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Reviewed-by: David Chase <drchase@google.com>
    gopherbot committed May 5, 2025
    Configuration menu
    Copy the full SHA
    aae6e61 View commit details
    Browse the repository at this point in the history
Loading
0