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.11.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.12.0
Choose a head ref
  • 11 commits
  • 19 files changed
  • 4 contributors

Commits on Jul 5, 2023

  1. ssh: prefer sha256 based MAC algorithms

    sha256 is more optimized than sha512 in Go and is secure enough
    so prefer sha256 over sha512.
    
    Fixes golang/go#61138
    
    Change-Id: I7658808655367f1ab5f4ac8b52e6b20bd30ebf87
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/507555
    Run-TryBot: Filippo Valsorda <filippo@golang.org>
    Reviewed-by: Filippo Valsorda <filippo@golang.org>
    Auto-Submit: Filippo Valsorda <filippo@golang.org>
    Reviewed-by: Joedian Reid <joedian@golang.org>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    drakkan authored and gopherbot committed Jul 5, 2023
    Copy the full SHA
    23b1b90 View commit details

Commits on Jul 10, 2023

  1. ssh: fix RSA certificate and public key authentication with older cli…

    …ents
    
    After adding support for rsa-sha2-256/512 on the server side some edge
    cases started to arise with old clients:
    
    1) public key authentication with gpg-agent < 2.2.6 fails because we
       receive ssh-rsa as signature format and rsa-sha2-256 or rsa-sha2-512
       as algorithm.
       This is a bug in gpg-agent fixed in this commit:
    
       gpg/gnupg@80b775b
    
    2) certificate authentication fails with OpenSSH 7.2-7.7 because we
       receive ssh-rsa-cert-v01@openssh.com as algorithm and rsa-sha2-256
       or rsa-sha2-512 as signature format.
    
    This patch is based on CL 412854 and has been tested with every version
    of OpenSSH from 7.1 to 7.9 and OpenSSH 9.3.
    
    Fixes golang/go#53391
    
    Change-Id: Id71f596f73d84efb5c76d6d5388432cccad3e3b1
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/506835
    Auto-Submit: Filippo Valsorda <filippo@golang.org>
    Reviewed-by: Filippo Valsorda <filippo@golang.org>
    Run-TryBot: Filippo Valsorda <filippo@golang.org>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Reviewed-by: Roland Shoemaker <roland@golang.org>
    drakkan authored and gopherbot committed Jul 10, 2023
    Copy the full SHA
    64e0e99 View commit details

Commits on Jul 11, 2023

  1. fix TestValidTerminalMode: missing output from echo SHELL $SHELL

    add leading `echo` to have better compatibility
    
    before
    
    ```
     go test -run ^TestValidTerminalMode -v
    === RUN   TestValidTerminalMode
        session_test.go:261: echo SHELL $SHELL && stty -a && exit:
            Last login: Thu Jul  6 12:24:38 2023 from 192.168.200.1
    SHELL /bin/bashubuntu:~$
            speed 38400 baud; rows 80; columns 40;
            line = 0;
            intr = ^C; quit = ^\; erase = ^?;
            kill = ^U; eof = ^D; eol = <undef>;
            eol2 = <undef>; swtch = <undef>;
            start = ^Q; stop = ^S; susp = ^Z;
            rprnt = ^R; werase = ^W; lnext = ^V;
            discard = ^O; min = 1; time = 0;
            -parenb -parodd -cmspar cs8 -hupcl
            -cstopb cread -clocal -crtscts
            -ignbrk -brkint -ignpar -parmrk -inpck
            -istrip -inlcr -igncr icrnl ixon -ixoff
            -iuclc -ixany -imaxbel -iutf8
            opost -olcuc -ocrnl onlcr -onocr -onlret
            -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
            isig icanon iexten -echo echoe echok
            -echonl -noflsh -xcase -tostop -echoprt
            echoctl echoke -flusho -extproc
            logout
        session_test.go:266: missing output from echo SHELL $SHELL
    ```
    
    after
    
    ```
     go test -run ^TestValidTerminalMode -v
    === RUN   TestValidTerminalMode
        session_test.go:261: echo SHELL $SHELL && stty -a && exit:
            Last login: Thu Jul  6 12:24:38 2023 from 192.168.200.1
            bolian@ubuntu:~$
            SHELL /bin/bash
            speed 38400 baud; rows 80; columns 40;
            line = 0;
            intr = ^C; quit = ^\; erase = ^?;
            kill = ^U; eof = ^D; eol = <undef>;
            eol2 = <undef>; swtch = <undef>;
            start = ^Q; stop = ^S; susp = ^Z;
            rprnt = ^R; werase = ^W; lnext = ^V;
            discard = ^O; min = 1; time = 0;
            -parenb -parodd -cmspar cs8 -hupcl
            -cstopb cread -clocal -crtscts
            -ignbrk -brkint -ignpar -parmrk -inpck
            -istrip -inlcr -igncr icrnl ixon -ixoff
            -iuclc -ixany -imaxbel -iutf8
            opost -olcuc -ocrnl onlcr -onocr -onlret
            -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
            isig icanon iexten -echo echoe echok
            -echonl -noflsh -xcase -tostop -echoprt
            echoctl echoke -flusho -extproc
            logout
    --- PASS: TestValidTerminalMode (0.06s)
    ```
    
    Change-Id: If60c040edb8c78a7d86bf58a6be47636d9e8f173
    GitHub-Last-Rev: a2cc1b1
    GitHub-Pull-Request: #264
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/508115
    Reviewed-by: Heschi Kreinick <heschi@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Run-TryBot: Heschi Kreinick <heschi@google.com>
    Auto-Submit: Heschi Kreinick <heschi@google.com>
    Reviewed-by: Bryan Mills <bcmills@google.com>
    tg123 authored and gopherbot committed Jul 11, 2023
    Copy the full SHA
    2e82bdd View commit details

Commits on Jul 13, 2023

  1. ssh: disable client agent tests on Windows

    ssh-agent is implemented as a Windows service and exposed on a
    named pipe. We don't currently support it.
    
    See golang/go#60981
    
    Change-Id: Iebdc42db30b37a87ac0766231b16aff3f17b3f56
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/509035
    Run-TryBot: Heschi Kreinick <heschi@google.com>
    Reviewed-by: Cherry Mui <cherryyz@google.com>
    Reviewed-by: Heschi Kreinick <heschi@google.com>
    Auto-Submit: Heschi Kreinick <heschi@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    drakkan authored and gopherbot committed Jul 13, 2023
    Copy the full SHA
    5df3b59 View commit details

Commits on Jul 14, 2023

  1. ssh: prefer sha256 based RSA key algorithms

    sha256 is more optimized than sha512 in Go and is secure enough
    so prefer sha256 over sha512.
    
    Change-Id: I3fcf7457791e3ef4539e97049aa905dcd293499d
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/507556
    Reviewed-by: Filippo Valsorda <filippo@golang.org>
    Reviewed-by: Cherry Mui <cherryyz@google.com>
    Run-TryBot: Filippo Valsorda <filippo@golang.org>
    Auto-Submit: Filippo Valsorda <filippo@golang.org>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Reviewed-by: Roland Shoemaker <roland@golang.org>
    drakkan authored and gopherbot committed Jul 14, 2023
    Copy the full SHA
    3f8f064 View commit details

Commits on Jul 18, 2023

  1. internal/wycheproof: skip all tests in short test mode

    The testdata for this package is around 8 MB and downloaded dynamically
    via 'go mod download' from its canonical source rather than being copied
    to this repository. We're moving towards disallowing all network use in
    short test mode, including proxy.golang.org, so add a corresponding test
    skip.
    
    Needing to lookup a go test flag is unfortunate, but I don't know of a
    less bad available option while the test does the download in TestMain.
    
    On balance, it becomes viable to no longer disable the checksum database
    since the test will only run on builders that permit internet use and so
    sum.golang.org should just work.
    
    Change-Id: Iaffe3899351da375928aaba114c4875f5438336b
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/510695
    Run-TryBot: Dmitri Shuralyov <dmitshur@google.com>
    Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
    Reviewed-by: Heschi Kreinick <heschi@google.com>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    dmitshur authored and gopherbot committed Jul 18, 2023
    Copy the full SHA
    12e1fcd View commit details

Commits on Jul 25, 2023

  1. x509roots/fallback: update bundle

    This is an automated CL which updates the NSS root bundle.
    
    Change-Id: Ic70152e674c60e48e85d96eab244add9b4fa5eb8
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/512595
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Run-TryBot: Gopher Robot <gobot@golang.org>
    Auto-Submit: Gopher Robot <gobot@golang.org>
    Reviewed-by: Roland Shoemaker <roland@golang.org>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    gopherbot committed Jul 25, 2023
    Copy the full SHA
    d08e19b View commit details

Commits on Jul 31, 2023

  1. ssh: ignore invalid MACs and KEXs just like we do for ciphers

    Tighter validation could cause backwards incompatibility issues, eg
    configurations with valid and invalid MACs, KEXs, ciphers currently work
    if a supported algorithm is negotiated and that's also the scenario of
    removing support for an existing algorithm.
    
    Fixes golang/go#39397
    
    Change-Id: If90253ba89e1d8f732cc1e1c3d24fe0a1e2dac71
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/512175
    Run-TryBot: Han-Wen Nienhuys <hanwen@google.com>
    Reviewed-by: Filippo Valsorda <filippo@golang.org>
    Reviewed-by: Han-Wen Nienhuys <hanwen@google.com>
    Auto-Submit: Filippo Valsorda <filippo@golang.org>
    Reviewed-by: David Chase <drchase@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    drakkan authored and gopherbot committed Jul 31, 2023
    Copy the full SHA
    ddfa821 View commit details
  2. ssh: add diffie-hellman-group16-sha512 kex

    This group is disabled by default because it is a bit slower than
    the others.
    The group18-sha512 variant is too slow to include.
    
    Benchstat results including diffie-hellman-group18-sha512:
    
    name                                           time/op
    Kexes/diffie-hellman-group-exchange-sha256-12  22.6ms ± 9%
    Kexes/diffie-hellman-group18-sha512-12          1.15s ±11%
    Kexes/ecdh-sha2-nistp384-12                    3.91ms ± 6%
    Kexes/ecdh-sha2-nistp256-12                     304µs ± 5%
    Kexes/curve25519-sha256@libssh.org-12           413µs ± 7%
    Kexes/ecdh-sha2-nistp521-12                    11.6ms ±13%
    Kexes/curve25519-sha256-12                      361µs ± 5%
    Kexes/diffie-hellman-group-exchange-sha1-12    22.9ms ± 9%
    Kexes/diffie-hellman-group1-sha1-12            3.59ms ± 6%
    Kexes/diffie-hellman-group14-sha1-12           22.1ms ±11%
    Kexes/diffie-hellman-group14-sha256-12         21.6ms ± 8%
    Kexes/diffie-hellman-group16-sha512-12          138ms ± 9%
    
    name                                           alloc/op
    Kexes/diffie-hellman-group-exchange-sha256-12  67.8kB ± 1%
    Kexes/diffie-hellman-group18-sha512-12          243kB ± 9%
    Kexes/ecdh-sha2-nistp384-12                    13.9kB ± 0%
    Kexes/ecdh-sha2-nistp256-12                    12.1kB ± 0%
    Kexes/curve25519-sha256@libssh.org-12          8.22kB ± 0%
    Kexes/ecdh-sha2-nistp521-12                    16.5kB ± 0%
    Kexes/curve25519-sha256-12                     8.22kB ± 0%
    Kexes/diffie-hellman-group-exchange-sha1-12    67.5kB ± 0%
    Kexes/diffie-hellman-group1-sha1-12            34.9kB ± 0%
    Kexes/diffie-hellman-group14-sha1-12           61.9kB ± 0%
    Kexes/diffie-hellman-group14-sha256-12         62.0kB ± 0%
    Kexes/diffie-hellman-group16-sha512-12          117kB ± 0%
    
    name                                           allocs/op
    Kexes/diffie-hellman-group-exchange-sha256-12     314 ± 0%
    Kexes/diffie-hellman-group18-sha512-12            271 ± 4%
    Kexes/ecdh-sha2-nistp384-12                       243 ± 0%
    Kexes/ecdh-sha2-nistp256-12                       213 ± 0%
    Kexes/curve25519-sha256@libssh.org-12             168 ± 0%
    Kexes/ecdh-sha2-nistp521-12                       245 ± 0%
    Kexes/curve25519-sha256-12                        168 ± 0%
    Kexes/diffie-hellman-group-exchange-sha1-12       314 ± 0%
    Kexes/diffie-hellman-group1-sha1-12               255 ± 0%
    Kexes/diffie-hellman-group14-sha1-12              255 ± 0%
    Kexes/diffie-hellman-group14-sha256-12            255 ± 0%
    Kexes/diffie-hellman-group16-sha512-12            256 ± 0%
    
    Change-Id: Id119401fda7e417675325f37e3d442e70585206c
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/506839
    Run-TryBot: Filippo Valsorda <filippo@golang.org>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Reviewed-by: Cherry Mui <cherryyz@google.com>
    Auto-Submit: Filippo Valsorda <filippo@golang.org>
    Reviewed-by: David Chase <drchase@google.com>
    Reviewed-by: Filippo Valsorda <filippo@golang.org>
    drakkan authored and gopherbot committed Jul 31, 2023
    Copy the full SHA
    eab9315 View commit details
  3. ssh: fix call to Fatalf from a non-test goroutine

    Also fix some redundant type declarations.
    
    Change-Id: Iad2950b67b1ec2e2590c59393b8ad15421ed3add
    GitHub-Last-Rev: 41cf552
    GitHub-Pull-Request: #263
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/505798
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Reviewed-by: David Chase <drchase@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
    Reviewed-by: Filippo Valsorda <filippo@golang.org>
    Run-TryBot: Filippo Valsorda <filippo@golang.org>
    drakkan authored and gopherbot committed Jul 31, 2023
    Copy the full SHA
    edc325d View commit details

Commits on Aug 4, 2023

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

    Update golang.org/x dependencies to their latest tagged versions.
    Once this CL is submitted, and post-submit testing succeeds on all
    first-class ports across all supported Go versions, this repository
    will be tagged with its next minor version.
    
    Change-Id: Id40feba36dfc31c7033c91b952ec824a38e048ee
    Reviewed-on: https://go-review.googlesource.com/c/crypto/+/515976
    Auto-Submit: Gopher Robot <gobot@golang.org>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Reviewed-by: Heschi Kreinick <heschi@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Run-TryBot: Gopher Robot <gobot@golang.org>
    gopherbot committed Aug 4, 2023
    Copy the full SHA
    b4ddeed View commit details

This comparison is taking too long to generate.

Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.

You can try running this command locally to see the comparison on your machine:
git diff v0.11.0...v0.12.0