chiark / gitweb /
pubkey.c: Catch invalid arguments to `RSAPub' and `RSAPriv'.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 6 Feb 2015 11:06:14 +0000 (11:06 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 6 Feb 2015 11:06:14 +0000 (11:06 +0000)
commit61cc9665df69b0641bfd40da285acbea20c48654
tree3dab04a731b6ecf9f20bf4ce59e84056e97ac448
parent9a7b948fe69ade6de49cfa1e357d6cbc40688f43
pubkey.c: Catch invalid arguments to `RSAPub' and `RSAPriv'.

If a modulus is even, `mpmont_create' will silently fail inside
`rsa_{pub,priv}create' and a later modexp will likely segfault.
pubkey.c