Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update upstream #1

Open
wants to merge 215 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
215 commits
Select commit Hold shift + click to select a range
5770296
ssh: don't assume packet plaintext size
rolandshoemaker Nov 9, 2021
4570a08
internal/wycheproof: skip on builders with flaky network connections
Dec 9, 2021
e495a2d
cryptobyte: fix parsing of large ASN.1 OIDs
umlublin Nov 19, 2021
5e0467b
acme: in TestFetchCertCancel, do not reply before the cancellation pr…
Jan 12, 2022
e04a857
ssh/agent: fix TestMalformedRequests
rolandshoemaker Dec 14, 2021
aa10faf
acme/autocert: renew Let's Encrypt certificates likely to get revoked
FiloSottile Jan 26, 2022
198e437
acme/autocert: replace all ACME server stubs with acmetest
FiloSottile Jan 28, 2022
30dcbda
acme: expose Client KID field
rolandshoemaker Oct 8, 2021
20e1d8d
ed25519: drop Go 1.12 compatibility
FiloSottile May 4, 2021
bba287d
ocsp: fix typo
kortschak Jan 28, 2022
65fa2f7
acme: remove support for pre-RFC 8555 ACME spec
benburkert Jan 22, 2022
2f5cac0
acme, sha3, ssh: fix the typos
howjmay May 12, 2021
dad3315
acme/autocert: include email in example
jsha May 28, 2021
db63837
ssh: accept WSAECONNABORTED in TestClientAuthMaxAuthTriesPublicKey
ianlancetaylor Jan 28, 2022
f4118a5
acme/autocert: fix races in renewal tests
Feb 9, 2022
1e6e349
crypto/ssh: don't send the last auth failure message if disconnecting
rolandshoemaker Feb 11, 2022
8634188
acme/autocert: skip renewal tests broken on windows/arm64
Feb 14, 2022
efcb850
ssh: fix typo
cuishuang Mar 7, 2022
6068a2e
ssh: ignore MAC if AEAD ciphers negotiated
rolandshoemaker Mar 2, 2022
b769efc
ssh: add IUTF8 constant from RFC 8160
bradfitz Mar 13, 2022
9b07691
ssh: support new curve25519-sha256 kex name
Finn9000 Feb 12, 2022
e4b3678
ssh: add diffie-hellman-group14-sha256 kex
FiloSottile Mar 12, 2022
4d39909
ssh: fix diffie-hellman-group-exchange g and K bounds checks
FiloSottile Mar 12, 2022
fcc990c
ssh: deprecate and replace SigAlgo constants
FiloSottile Mar 14, 2022
1baeb1c
ssh: don't advertise rsa-sha2 algorithms if we can't use them
FiloSottile Mar 14, 2022
a577426
ssh: send (and rename) keyboard-interactive name field to the client
FiloSottile Mar 14, 2022
5d542ad
ssh: support rsa-sha2-256/512 for client authentication
FiloSottile Mar 14, 2022
3147a52
ssh: support rsa-sha2-256/512 for client certificates
FiloSottile Mar 15, 2022
2c7772b
ssh: send ext-info-c only once
peterverraedt Mar 21, 2022
ae2d966
ocsp: add Response.Raw
rolandshoemaker Mar 2, 2022
5352b09
acme/autocert: support External Account Binding (EAB) tokens
benburkert Oct 6, 2021
7b82a4e
all: gofmt
rsc Apr 11, 2022
eb4f295
internal/wycheproof: add ECDH tests, including point decompression
FiloSottile Mar 27, 2022
2cf3ade
internal/wycheproof: skip truncated SHA-512 RSAPSS tests for boring
rolandshoemaker May 6, 2022
c6db032
acme/autocert/internal/acmetest: don't validate in goroutine
rolandshoemaker May 11, 2022
4661260
ssh/agent: fix non-RSA certificates
FiloSottile May 6, 2022
403b017
acme: add AccountKeyRollover
jason-baker May 13, 2022
85d78b3
curve25519/internal/field: update generator to avo v0.4.0
tklauser Mar 1, 2022
6f7dac9
acme: DeactivateReg fix panic
jason-baker May 17, 2022
793ad66
acme/autocert: properly clean DirCache paths
rolandshoemaker May 25, 2022
0559593
curve25519: remove dependency on fmt
aaqaishtyaq Sep 7, 2021
630584e
A+C: delete AUTHORS and CONTRIBUTORS
rsc Jul 22, 2022
04dced1
internal/subtle: rename to internal/alias
rsc Aug 16, 2022
bc19a97
acme: gofmt code with Go 1.19 gofmt
rsc Aug 16, 2022
5757bc0
cryptobyte: add ReadUint64 and AddUint64
hopehook Aug 3, 2022
bd7e27e
ssh/agent: match OpenSSH extensionAgentMsg, not IETF draft
edef1c Jun 14, 2022
c86fa9a
internal/wycheproof: add crypto/ecdh tests
rolandshoemaker Aug 16, 2022
35f4265
all: replace io/ioutil with io and os package
cuishuang Sep 16, 2022
4ba4fb4
acme/autocert: fix renewal timer issue
rolandshoemaker Sep 23, 2022
eccd636
acme/autocert: remove TestRenewFromCache skips
rolandshoemaker Sep 24, 2022
4161e89
all: replace bytes.Compare with bytes.Equal
cuishuang Oct 4, 2022
d6f0a8c
ssh: add ServerConfig.NoClientAuthCallback
bradfitz Mar 23, 2022
9be5aaa
all: fix a few function names on comments
cuishuang Oct 11, 2022
56aed06
all: use automatic RFC linking
Merovius Oct 11, 2022
642fcc3
go.mod: update golang.org/x dependencies
gopherbot Oct 19, 2022
a3485e1
all: use math/bits.RotateLeft
AlexanderYastrebov Oct 24, 2022
334521b
ssh: fix typo
ideapark Nov 3, 2022
183a9b7
go.mod: update golang.org/x dependencies
gopherbot Nov 8, 2022
21d60a1
all: remove redundant type conversion
cuishuang Sep 7, 2022
6fad3df
ssh: support rsa-sha2-256/512 on the server side
FiloSottile Nov 3, 2022
0ec7e83
internal/wycheproof: update Go 1.20 crypto/ecdh API
FiloSottile Nov 16, 2022
2c47667
cryptobyte: add support for ReadASN1Integer into []byte
FiloSottile Nov 17, 2022
eb2c406
go.mod: update golang.org/x dependencies
gopherbot Dec 6, 2022
f495dc3
acme: eliminate arbitrary timeouts in tests
Dec 8, 2022
23edec0
ssh: ensure that handshakeTransport goroutines have finished before C…
Dec 12, 2022
7e3ac20
internal/wycheproof: also use Verify in TestECDSA
rolandshoemaker Nov 28, 2022
bc7d1d1
bcrypt: reject passwords longer than 72 bytes
rolandshoemaker Nov 14, 2022
3d872d0
go.mod: update golang.org/x dependencies
gopherbot Jan 4, 2023
59ff472
all: fix some comments
cuishuang Jan 29, 2023
310bfa4
cryptobyte: reject negative Unwrite argument
AlexanderYastrebov Feb 1, 2023
a9f661c
go.mod: update golang.org/x dependencies
gopherbot Feb 8, 2023
ebe9262
ssh: add support for [email protected]
drakkan Feb 15, 2023
776e461
go.mod: update golang.org/x dependencies
gopherbot Mar 5, 2023
c6a20f9
ssh: document that ParseRawPrivateKey supports Ed25519 keys
nhooyr Jan 24, 2023
9cd0187
curve25519: use crypto/ecdh on Go 1.20
FiloSottile Nov 16, 2022
018c28f
all: fix some comments
cuishuang Mar 20, 2023
00fd4ff
go.mod: update golang.org/x dependencies
gopherbot Apr 6, 2023
1faeef9
cryptobyte: reject Object Identifiers with leading 0x80
mateusz834 Apr 12, 2023
7d6d3f5
ssh/test: skip TestValidTerminalMode on non-Bourne shells
Apr 17, 2023
a8cc953
ssh: skip unsupported tests on wasip1
tklauser Apr 18, 2023
3ef8056
ssh/test: enable on solaris
tklauser Apr 28, 2023
a4e9841
go.mod: update golang.org/x dependencies
gopherbot May 8, 2023
1622238
Add support for "[email protected]"
s-k2 Apr 2, 2020
d0b3160
x509roots: add new module
rolandshoemaker Jan 13, 2023
22c9997
go.mod: tell x repo tagging to ignore dep on net
heschi Jun 12, 2023
8e447d8
go.mod: update golang.org/x dependencies
gopherbot Jun 12, 2023
0ff6005
ssh/test: set a timeout and WaitDelay on sshd subcommands
May 22, 2023
0d502d7
x509roots: use "generate" build tag
rolandshoemaker Jun 20, 2023
043e94c
x509roots: fix generate script argument checking
rolandshoemaker Jun 20, 2023
5fe8145
x509roots: remove list hash and generation date, change ordering
rolandshoemaker Jun 20, 2023
64c3993
ssh: add hmac-sha2-512
stanhu Jun 7, 2023
a9e447d
x509roots/fallback: add //go:build go1.20 to bundle.go
dmitshur Jun 22, 2023
183630a
x509roots: generate a stable sort, for real this time
rolandshoemaker Jun 23, 2023
e984872
go.mod: update golang.org/x dependencies
gopherbot Jul 5, 2023
23b1b90
ssh: prefer sha256 based MAC algorithms
drakkan Jul 1, 2023
64e0e99
ssh: fix RSA certificate and public key authentication with older cli…
drakkan Jun 28, 2023
2e82bdd
fix TestValidTerminalMode: missing output from echo SHELL $SHELL
tg123 Jul 6, 2023
5df3b59
ssh: disable client agent tests on Windows
drakkan Jul 12, 2023
3f8f064
ssh: prefer sha256 based RSA key algorithms
drakkan Jul 1, 2023
12e1fcd
internal/wycheproof: skip all tests in short test mode
dmitshur Jul 18, 2023
d08e19b
x509roots/fallback: update bundle
gopherbot Jul 24, 2023
ddfa821
ssh: ignore invalid MACs and KEXs just like we do for ciphers
drakkan Jul 22, 2023
eab9315
ssh: add diffie-hellman-group16-sha512 kex
drakkan Jun 28, 2023
edc325d
ssh: fix call to Fatalf from a non-test goroutine
drakkan Jul 29, 2023
b4ddeed
go.mod: update golang.org/x dependencies
gopherbot Aug 4, 2023
0d375be
go.mod: update golang.org/x dependencies
gopherbot Sep 3, 2023
c5370d2
ssh: check the declared public key algo against decoded one
drakkan Jun 28, 2023
d359caa
ssh: support for marshaling keys using the OpenSSH format
maraino Feb 8, 2020
e90f1e1
cryptobyte: add uint48 methods
hasheddan Sep 6, 2023
3f0842a
sha3: have ShakeHash extend hash.Hash
mdempsky Sep 10, 2023
28c53ff
ssh: add MultiAlgorithmSigner
drakkan Jul 8, 2023
a1aeb9b
ssh: add test cases for compatibility with old (buggy) clients
drakkan Sep 5, 2023
b665ba6
all: use crypto/ed25519 instead of golang.org/x/crypto/ed25519
thaJeztah Sep 25, 2023
ec07f4e
chacha20: drop Go 1.10 compatibility for arm64
thaJeztah Nov 6, 2022
833695f
ssh: add server side support for [email protected] protocol extension
drakkan Aug 31, 2023
e3cc52e
go.mod: update golang.org/x dependencies
gopherbot Oct 5, 2023
2aeefc3
ssh: add support for SSH_AGENT_CONSTRAIN_EXTENSION with id 255
drakkan Sep 3, 2023
8779cbd
all: update go directive to 1.18
dmitshur Oct 10, 2023
1d57292
x509roots: check HTTP response status code and media type
dmitshur Oct 20, 2023
4f30245
x509roots: catch the zero-roots case when generating the bundle
rolandshoemaker Oct 18, 2023
cf8dcb0
ssh: add test case against ssh CLI
drakkan Jun 28, 2023
74c2ba9
crypto/hkdf: remove useless call to Reset
ericlagergren Aug 12, 2022
df0bc9e
chacha20poly1305: guard PSHUFB usage with GOAMD64_v2
mauri870 Nov 7, 2023
e668aa9
go.mod: update golang.org/x dependencies
gopherbot Nov 8, 2023
42c83ff
ssh: try harder to detect incorrect passwords for legacy PEM encryption
drakkan Oct 31, 2023
eb61739
ssh: allow to configure public key auth algorithms on the server side
drakkan Jul 18, 2023
ff15cd5
ssh: eliminate some goroutine leaks in tests and examples
Nov 9, 2023
a2edfb5
cryptobyte: fix ReadOptionalASN1Boolean
rolandshoemaker Nov 9, 2023
1cf1811
ssh: use the correct token from the client
bodgit Jan 25, 2021
270bf25
curve25519/internal/field/_asm: go mod tidy to fix x/sys version
thaJeztah Nov 9, 2023
1c17e20
ssh: fix certificate authentication with OpenSSH 7.2-7.7
drakkan Jul 16, 2023
b2d7c26
ssh: add (*Client).DialContext method
ydnar Jun 22, 2023
1eadac5
go.mod: update golang.org/x dependencies
gopherbot Nov 27, 2023
325b735
ssh/test: skip TestSSHCLIAuth on Windows
heschi Nov 27, 2023
bda2f3f
argon2: avoid clobbering BP
egonelbre Jul 1, 2021
7e6fbd8
ssh: wrap errors from client handshake
paxan Nov 27, 2023
b8ffc16
blake2b: drop Go 1.6, Go 1.8 compatibility
thaJeztah Nov 9, 2023
fdfe1f8
ssh: defer channel window adjustment
Dec 16, 2022
152cdb1
x509roots/fallback: update bundle
gopherbot Nov 20, 2023
4e5a261
ssh: close net.Conn on all NewServerConn errors
espadolini Dec 12, 2023
9d2ee97
ssh: implement strict KEX protocol changes
rolandshoemaker Nov 20, 2023
08396bb
internal/poly1305: drop Go 1.12 compatibility
thaJeztah Nov 27, 2023
055043d
go.mod: update golang.org/x dependencies
gopherbot Jan 4, 2024
403f699
ssh/test: avoid leaking a net.UnixConn in server.TryDialWithAddr
Jan 5, 2024
dbb6ec1
ssh/test: skip tests on darwin that fail on the darwin-amd64-longtest…
Jan 5, 2024
913d3ae
x509roots/fallback: update bundle
gopherbot Feb 5, 2024
405cb3b
go.mod: update golang.org/x dependencies
gopherbot Feb 7, 2024
62c9f17
x509roots/nss: manually exclude a confusingly constrained root
rolandshoemaker Feb 7, 2024
1c981e6
ssh/test: don't use DSA keys in integrations tests, update test RSA key
drakkan Feb 8, 2024
1a86580
x/crypto/internal/poly1305: improve sum_ppc64le.s
laboger Jan 19, 2024
5bead59
ocsp: don't use iota for externally defined constants
bradfitz Feb 16, 2024
0aab8d0
all: update go.mod x/net dependency
rolandshoemaker Feb 26, 2024
0d2316b
ssh/test: work around for TestCiphers failures on macOS
drakkan Feb 18, 2024
7067223
go.mod: update golang.org/x dependencies
gopherbot Mar 4, 2024
b91329d
all: remove redundant words in comments and fix some typos
cuishuang Mar 5, 2024
8d0d405
x/crypto/chacha20: cleanup chacha_ppc64le.s
jkrishmys Feb 19, 2024
6f79b5a
ssh: add server side multi-step authentication
drakkan Aug 5, 2023
b92bf94
ssh: respect MaxAuthTries also for "none" auth attempts
drakkan Apr 3, 2024
d042a39
go.mod: update golang.org/x dependencies
gopherbot Apr 4, 2024
5defcc1
sha3: fix Sum results for SHAKE functions on s390x
mundaym Apr 13, 2024
0da2a6a
openpgp: fix function name in comment
cuishuang Apr 16, 2024
ebb717d
ssh: validate key type in SSH_MSG_USERAUTH_PK_OK response
drakkan Mar 23, 2024
905d78a
go.mod: update golang.org/x dependencies
gopherbot May 5, 2024
10f366e
sha3: simplify XOR functions
FiloSottile Nov 24, 2023
59b5a86
sha3: disable s390x assembly
FiloSottile Nov 24, 2023
477a5b4
sha3: make APIs usable with zero allocations
FiloSottile Nov 24, 2023
67b1361
sha3: reenable s390x assembly
mauri870 Jan 6, 2024
44c9b0f
ssh: allow server auth callbacks to send additional banners
awly Jan 26, 2024
349231f
ssh: implement CryptoPublicKey on sk keys
maraino Sep 8, 2023
0b431c7
x509roots/fallback: update bundle
gopherbot Jun 3, 2024
332fd65
go.mod: update golang.org/x dependencies
gopherbot Jun 4, 2024
d4e7c9c
ssh: fail client auth immediately on receiving disconnect message
samiponkanen May 17, 2024
1c74500
ssh/test: make struct comment match struct name
cuishuang Jun 24, 2024
a6a393f
all: bump go.mod version and drop compatibility shims
FiloSottile Jun 24, 2024
9fadb0b
go.mod: update golang.org/x dependencies
gopherbot Jul 4, 2024
d66d9c3
x509roots/fallback: update bundle
gopherbot Jul 8, 2024
f2bc3a6
x509roots/fallback/internal/goissue52287: delete
dmitshur Jul 16, 2024
80fd972
LICENSE: update per Google Legal
rsc Jul 16, 2024
e983fa2
sha3: Avo port of keccakf_amd64.s
Garrett-Bodley Jun 24, 2024
6879722
ssh: remove go 1.21+ dependency on slices
imirkin Jul 16, 2024
bb80217
ssh: don't use dsa keys in integration tests
drakkan Jul 21, 2024
3375612
ssh: add support for unpadded RSA signatures
imirkin Jul 16, 2024
5bcd010
go.mod: update golang.org/x dependencies
gopherbot Aug 6, 2024
b2d3a6a
ssh/agent: ensure to not add duplicated keys
drakkan Aug 4, 2024
bf5f14f
x509roots/fallback: update bundle
gopherbot Sep 2, 2024
38a0b5d
argon2: Avo port of blamka_amd64.s
Garrett-Bodley Jul 22, 2024
38ed1bc
blake2s: port blake2s_amd64.s to Avo
Garrett-Bodley Jul 26, 2024
0484c26
blake2b: port blake2bAVX2_amd64.s to Avo
Garrett-Bodley Jul 25, 2024
82942cf
blake2b: port blake2b_amd64.s to Avo
Garrett-Bodley Jul 23, 2024
620dfbc
salsa20/salsa: Port salsa20_amd64.s to Avo
Garrett-Bodley Jul 26, 2024
7eace71
chacha20poly1305: Avo port of chacha20poly1305_amd64.s
Garrett-Bodley Jul 29, 2024
bcb0f91
internal/poly1305: Port sum_amd64.s to Avo
Garrett-Bodley Jul 21, 2024
b35ab4f
go.mod: update golang.org/x dependencies
gopherbot Sep 4, 2024
c9da6b9
all: fix printf(var) mistakes detected by latest printf checker
dmitshur Sep 4, 2024
9e92970
bn256: add missing symbols in comment
cuishuang Sep 9, 2024
42ee18b
ssh: return ServerAuthError after too many auth failures
drakkan Feb 25, 2024
a0819fb
sha3: fix cSHAKE initialization for extremely large N and or S
Yawning Mar 11, 2024
adef4cc
go.mod: update golang.org/x dependencies
gopherbot Oct 4, 2024
6c21748
internal/poly1305: extend ppc64le support to ppc64
pmur Sep 18, 2024
b61b08d
chacha20: extend ppc64le support to ppc64
pmur Sep 13, 2024
7cfb916
ssh: return unexpected msg error when server fails keyboard-interacti…
samiponkanen Oct 16, 2024
c17aa50
sha3: avoid buffer copy
FiloSottile Sep 29, 2024
80ea76e
sha3: fix padding for long cSHAKE parameters
FiloSottile Sep 29, 2024
36b1725
sha3: avoid trailing permutation
FiloSottile Oct 2, 2024
750a45f
sha3: add MarshalBinary, AppendBinary, and UnmarshalBinary
FiloSottile Sep 30, 2024
71ed71b
README: don't recommend go get
ianlancetaylor Oct 31, 2024
6018723
go.mod: update golang.org/x dependencies
gopherbot Nov 7, 2024
8c4e668
x509roots/fallback: update bundle
gopherbot Nov 25, 2024
3e90321
go.mod: update golang.org/x dependencies
gopherbot Dec 4, 2024
7042ebc
openpgp/clearsign: just use rand.Reader in tests
rolandshoemaker Dec 4, 2024
b4f1988
ssh: make the public key cache a 1-entry FIFO cache
rolandshoemaker Dec 3, 2024
4a75ba5
all: make function and struct comments match the names
cuishuang Jan 1, 2025
8929309
go.mod: update golang.org/x dependencies
gopherbot Jan 5, 2025
71d3a4c
acme: support challenges that require the ACME client to send a non-e…
zhsh Aug 28, 2024
a8ea4be
ssh: add ServerConfig.PreAuthConnCallback, ServerPreAuthConn (banner)…
bradfitz Sep 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions AUTHORS

This file was deleted.

3 changes: 0 additions & 3 deletions CONTRIBUTORS

This file was deleted.

4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2009 The Go Authors. All rights reserved.
Copyright 2009 The Go Authors.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
Expand All @@ -10,7 +10,7 @@ notice, this list of conditions and the following disclaimer.
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the name of Google Inc. nor the names of its
* Neither the name of Google LLC nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

Expand Down
13 changes: 5 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,17 @@

[![Go Reference](https://pkg.go.dev/badge/golang.org/x/crypto.svg)](https://pkg.go.dev/golang.org/x/crypto)

This repository holds supplementary Go cryptography libraries.

## Download/Install

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 holds supplementary Go cryptography packages.

## Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to
this repository, see https://golang.org/doc/contribute.html.
this repository, see https://go.dev/doc/contribute.

The git repository is https://go.googlesource.com/crypto.

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
https://go.dev/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
Expand Down
Loading