gnu.crypto.key.rsa
Class RSAKeyPairGenerator
- IKeyPairGenerator
public class RSAKeyPairGenerator
A key-pair generator for asymetric keys to use in conjunction with the RSA
scheme.
Reference:
-
RSA-PSS Signature Scheme with Appendix, part B. Primitive
specification and supporting documentation. Jakob Jonsson and Burt Kaliski.
- Handbook of Applied
Cryptography, Alfred J. Menezes, Paul C. van Oorschot and Scott A.
Vanstone. Section 11.3 RSA and related signature schemes.
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.
|
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.
|
MODULUS_LENGTH
public static final String MODULUS_LENGTH
Property name of the length (Integer) of the modulus of an RSA key.
RSA_PARAMETERS
public static final String RSA_PARAMETERS
Property name of an optional RSAKeyGenParameterSpec
instance to
use for this generator's n
, and e
values. The
default is to generate n
and use a fixed value for
e (Fermat's F4 number).
SOURCE_OF_RANDOMNESS
public static final String SOURCE_OF_RANDOMNESS
Property name of an optional
SecureRandom
instance to use. The
default is to use a classloader singleton from
PRNG
.
generate
public KeyPair generate()
The algorithm used here is described in nessie-pss-B.pdf
document which is part of the RSA-PSS submission to NESSIE.
- generate in interface IKeyPairGenerator
setup
public void setup(Map attributes)
Configures this instance.
- setup in interface IKeyPairGenerator
attributes
- the map of name/value pairs to use.
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.