|author||Nicola Murino <firstname.lastname@example.org>||Tue Oct 31 18:02:46 2023 +0100|
|committer||Gopher Robot <email@example.com>||Wed Nov 08 18:01:48 2023 +0000|
ssh: try harder to detect incorrect passwords for legacy PEM encryption Because of deficiencies in the format, DecryptPEMBlock does not always detect an incorrect password. In these cases decrypted DER bytes is random noise. If the parsing of the key returns an asn1.StructuralError we return x509.IncorrectPasswordError. Fixes golang/go#62265 Change-Id: Ib8b845f2bd01662c1f1421d35859a32ac5b78da7 Reviewed-on: https://go-review.googlesource.com/c/crypto/+/538835 Reviewed-by: Heschi Kreinick <firstname.lastname@example.org> Reviewed-by: Filippo Valsorda <email@example.com> Auto-Submit: Filippo Valsorda <firstname.lastname@example.org> LUCI-TryBot-Result: Go LUCI <email@example.com> Reviewed-by: Cherry Mui <firstname.lastname@example.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
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.