gnu.crypto.key.rsa
public class RSAKeyPairGenerator extends Object implements IKeyPairGenerator
A key-pair generator for asymetric keys to use in conjunction with the RSA scheme.
Reference:
Version: $Revision: 1.2 $
Field Summary | |
---|---|
static String | MODULUS_LENGTH Property name of the length (Integer) of the modulus of an RSA key. |
static String | RSA_PARAMETERS
Property name of an optional RSAKeyGenParameterSpec instance to
use for this generator's n , and e values. |
static String | SOURCE_OF_RANDOMNESS
Property name of an optional SecureRandom instance to use. |
Method Summary | |
---|---|
KeyPair | generate() The algorithm used here is described in nessie-pss-B.pdf document which is part of the RSA-PSS submission to NESSIE. |
String | name() |
void | setup(Map attributes) Configures this instance. |
n
, and e
values. The
default is to generate n
and use a fixed value for
e (Fermat's F4 number).
The algorithm used here is described in nessie-pss-B.pdf document which is part of the RSA-PSS submission to NESSIE.
Returns: an RSA keypair.
Configures this instance.
Parameters: attributes the map of name/value pairs to use.
Throws: IllegalArgumentException if the designated MODULUS_LENGTH value is less than 1024.