public class KeyGen
extends java.lang.Object
This command-line tools generates key pairs for Makwa. Usage:
KeyGen size [ -text ] [ -outpub file ] [ -outpriv file ]
The size
parameter is the modulus size, in bits. It must be
in the 1273 to 32768 range. The recommended value is 2048.
If -text
is specified, then the modulus will be displayed
(in hexadecimal).
If -outpub
is used, then the public key (modulus) is encoded
and written into a file with the provided name.
If -outpriv
is used, then the private key is encoded
and written into a file with the provided name. If this option is not
used, then the private key is lost forever; this does not prevent the
modulus from being used with Makwa, but the "fast path", work factor
decrease and unescrow features will never be usable with that modulus.
Note: public and private keys generated by this tools always include a generator of invertible quadratic residues.