commit | 6068a2e6cfdc895ce524b6d2bdc8ea0cea8ea0e8 | [log] [tgz] |
---|---|---|
author | Roland Shoemaker <roland@golang.org> | Wed Mar 02 08:24:15 2022 -0800 |
committer | Filippo Valsorda <filippo@golang.org> | Sat Mar 12 13:11:42 2022 +0000 |
tree | fed73256d9872634836f5ad94e8e3ff1a11cc52f | |
parent | efcb8507fb706dc09498bdd32b7aafa38228fc86 [diff] |
ssh: ignore MAC if AEAD ciphers negotiated If the server/client cipher chosen is one of the two AEAD ciphers that we support (aes128-gcm@openssh.com and chacha20-poly1305@openssh.com), don't attempt to find a common MAC algorithm in findAgreedAlgorithms. Similarly in newPacketCipher, don't attempt to generate a MAC key if we are using a AEAD cipher. Fixes golang/go#51406 Change-Id: Id48ae72f052cb0a0c597b32e9901a0f218e4161f Reviewed-on: https://go-review.googlesource.com/c/crypto/+/389214 Trust: Roland Shoemaker <roland@golang.org> Run-TryBot: Roland Shoemaker <roland@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Filippo Valsorda <filippo@golang.org>
This repository holds supplementary Go cryptography libraries.
The easiest way to install is to run go get -u golang.org/x/crypto/...
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/crypto
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the crypto repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/crypto:” in the subject line, so it is easy to find.
Note that contributions to the cryptography package receive additional scrutiny due to their sensitive nature. Patches may take longer than normal to receive feedback.