| java.security.KeyPairGenerator sun.security.provider.DSAKeyPairGenerator
DSAKeyPairGenerator | public class DSAKeyPairGenerator extends KeyPairGenerator implements java.security.interfaces.DSAKeyPairGenerator(Code) | | This class generates DSA key parameters and public/private key
pairs according to the DSS standard NIST FIPS 186. It uses the
updated version of SHA, SHA-1 as described in FIPS 180-1.
author: Benjamin Renaud version: 1.14, 02/02/00 |
Method Summary | |
public KeyPair | generateKeyPair() Generates a pair of keys usable by any JavaSecurity compliant
DSA implementation.
Parameters: rnd - the source of random bits from which the random keygeneration parameters are drawn. | public KeyPair | generateKeyPair(BigInteger p, BigInteger q, BigInteger g, SecureRandom random) | BigInteger | generateX(int[] seed, BigInteger q) Given a seed, generate the private key component of the key
pair. | BigInteger | generateY(BigInteger x, BigInteger p, BigInteger g) Generate the public key component y of the key pair. | public void | initialize(int strength, SecureRandom random) | public void | initialize(int modlen, boolean genParams, SecureRandom random) Initializes the DSA key pair generator. | public void | initialize(DSAParams params, SecureRandom random) Initializes the DSA object using a DSA parameter object. | public void | initialize(AlgorithmParameterSpec params, SecureRandom random) Initializes the DSA object using a parameter object. |
generateNewParameters | boolean generateNewParameters(Code) | | |
DSAKeyPairGenerator | public DSAKeyPairGenerator()(Code) | | |
generateKeyPair | public KeyPair generateKeyPair()(Code) | | Generates a pair of keys usable by any JavaSecurity compliant
DSA implementation.
Parameters: rnd - the source of random bits from which the random keygeneration parameters are drawn. In particular, this includesthe XSEED parameter. exception: InvalidParameterException - if the modulus is notbetween 512 and 1024. |
generateX | BigInteger generateX(int[] seed, BigInteger q)(Code) | | Given a seed, generate the private key component of the key
pair. In the terminology used in the DSA specification
(FIPS-186) seed is the XSEED quantity.
Parameters: seed - the seed to use to generate the private key. |
initialize | public void initialize(int modlen, boolean genParams, SecureRandom random) throws InvalidParameterException(Code) | | Initializes the DSA key pair generator. If genParams
is false, a set of pre-computed parameters is used. In this case,
modelen must be 512, 768, or 1024.
|
|
|