Files
crypto/ssh
Nicola Murino 42c83fffff 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 <heschi@google.com>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Auto-Submit: Filippo Valsorda <filippo@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
2023-11-08 18:01:48 +00:00
..
2023-01-30 18:50:24 +00:00
2023-10-24 07:12:59 +00:00
2014-04-09 13:57:52 -07:00
2023-09-20 18:10:30 +00:00
2023-09-20 18:10:30 +00:00
2023-09-20 18:10:30 +00:00
2023-03-20 20:33:29 +00:00
2023-09-20 18:10:30 +00:00
2023-06-22 14:36:59 +00:00
2014-04-09 13:57:52 -07:00