]> Cypherpunks repositories - gostls13.git/commit
crypto/rsa: support unpadded signatures.
authorAdam Langley <agl@golang.org>
Mon, 6 Jan 2014 21:11:58 +0000 (16:11 -0500)
committerAdam Langley <agl@golang.org>
Mon, 6 Jan 2014 21:11:58 +0000 (16:11 -0500)
commit78c16c9b16dc9c64d1ddad6db5afaab12e87e8f2
treeaf495f758ab0f33f56991cb1406ce442a3c4bdac
parent90e9669c50fc471e14b358382a60b6354182fb2d
crypto/rsa: support unpadded signatures.

Usually when a message is signed it's first hashed because RSA has low
limits on the size of messages that it can sign. However, some
protocols sign short messages directly. This isn't a great idea because
the messages that can be signed suddenly depend on the size of the RSA
key, but several people on golang-nuts have requested support for
this and it's very easy to do.

R=golang-codereviews, rsc
CC=golang-codereviews
https://golang.org/cl/44400043
src/pkg/crypto/rsa/pkcs1v15.go
src/pkg/crypto/rsa/pkcs1v15_test.go