commit | 3e2271302c085ee7a901f58dbc969e4bb766ab98 | [log] [tgz] |
---|---|---|
author | Adam Langley <agl@golang.org> | Sat Oct 25 11:19:44 2014 -0700 |
committer | Adam Langley <agl@golang.org> | Sat Oct 25 11:19:44 2014 -0700 |
tree | 282377899eb3e7181c86fd217bf4746501d07c9d | |
parent | 7780ec1765a51ccc5ca19caaa72712ae6d86f3b7 [diff] |
go.crypto/openpgp: don't corrupt encrypted private key when decryption fails. Since the decryption was done in place, if an incorrect key was given, the encrypted data would be corrupted. Fixes golang/go#8439. R=bradfitz CC=golang-codereviews https://golang.org/cl/115550043