commit | f2c09b05fad1cff24f128c2a653041125bdec44c | [log] [tgz] |
---|---|---|
author | Michael Gehring <mg@ebfe.org> | Sat Jul 18 23:22:02 2015 +0200 |
committer | Adam Langley <agl@golang.org> | Wed Jul 29 16:51:43 2015 +0000 |
tree | 2e9f4a36e736f2903bb4e7de92b5f21a2df80d6d | |
parent | 56474dfd625f18739b46f075b138fd0133717491 [diff] |
x/crypto/openpgp/packet: validate parsed rsa private keys parseRSAPrivateKey calls rsa.PrivateKey.Precompute which triggers divide-by-zero panic if either p or q is 1. Sanity check the parsed values by calling rsa.PrivateKey.Validate. Fixes golang/go#11505 Change-Id: Ia6c9eccca0cfa49aaa58716e708c557a788bb204 Reviewed-on: https://go-review.googlesource.com/12356 Reviewed-by: Adam Langley <agl@golang.org>