commit | e85e67889931e10908e912622a6954943fb28ed5 | [log] [tgz] |
---|---|---|
author | Adam Langley <agl@golang.org> | Wed May 15 10:27:34 2013 -0400 |
committer | Adam Langley <agl@golang.org> | Wed May 15 10:27:34 2013 -0400 |
tree | c6f641e12f6268c8f5e85180f978762562350d80 | |
parent | a1dbfee15b7283a41ae01c482a3862d2148798b8 [diff] |
crypto/rsa: check for minimal PKCS#1 v1.5 padding. The PKCS#1 spec requires that the PS padding in an RSA message be at least 8 bytes long. We were not previously checking this. This isn't important in the most common situation (session key encryption), but the impact is unclear in other cases. This change enforces the specified minimum size. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/9222045