]> Cypherpunks repositories - gostls13.git/commit
crypto/rsa: reject PublicKey.E if it won't fit in a 32-bit int
authorRuss Cox <rsc@golang.org>
Thu, 13 Sep 2012 14:47:01 +0000 (10:47 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 13 Sep 2012 14:47:01 +0000 (10:47 -0400)
commitef87c0edae19d6437801cd74203f5a2c19ea6534
tree5692c3f32890c31d77c2236748ddbc62144b42ec
parent6ee91ced92fc27f8c93b0589484923593cad240f
crypto/rsa: reject PublicKey.E if it won't fit in a 32-bit int

Right now we only have 32-bit ints so that's a no-op.
Took the opportunity to check for some other invalid values too.
Suggestions for additions or modifications welcome.

R=agl
CC=golang-dev
https://golang.org/cl/6493112
src/pkg/crypto/rsa/pkcs1v15.go
src/pkg/crypto/rsa/rsa.go