pub/rsa-gen.c, progs/key.c: Overhaul RSA key generation.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 11 May 2017 09:42:15 +0000 (10:42 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 14 May 2017 13:58:40 +0000 (14:58 +0100)
commit8de0fc89afe5c4ee0917b151f62b49ce1e22fe68
treeab3b41c915661d74253aa439e1082e3e5b201b1d
parentbd9fe9759eb3c67210542757ef374d09730626ae
pub/rsa-gen.c, progs/key.c: Overhaul RSA key generation.

Rewrite the key-generation code from scratch.  The new version seems
simpler to me, and allows the caller to choose the public exponent.  It
also retries repeatedly until it finds acceptable values unless told to
stop within a finite number of steps.

Add an option to `key' to allow the user to select a different
exponent.  Recommend e = 3 in the manpage.
progs/key.1
progs/key.c
pub/rsa-gen.c
pub/rsa.h