|
IAIK ECC version 2.18 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.security.KeyPairGeneratorSpi java.security.KeyPairGenerator iaik.security.ecc.ecdsa.ECDSAKeyPairGeneratorImpl
Implementation of a key pair generator for the ECDSA algorithm It is based on the Algorithm described in the P1363 standard.
Field Summary | |
static java.lang.String[] |
DEFAULT_CURVES
The name of the default curves |
static int |
DEFAULT_KEY_SIZE
The default key size |
static int[] |
KEY_SIZES
The key sizes of the default curves |
Constructor Summary | |
ECDSAKeyPairGeneratorImpl()
Do not instantiate this class directly. |
Method Summary | |
java.security.KeyPair |
generateKeyPair()
Generates the keys. |
void |
initialize(java.security.spec.AlgorithmParameterSpec spec)
Initialize this keypair generator with ecc parameter spec. |
void |
initialize(ECDSAParams params,
java.security.SecureRandom random)
Implementation of ECDSAKeyPairGenerator Interface |
void |
initialize(int keysize,
java.security.SecureRandom random)
Parameterizes the engine with a NIST elliptic curve with the keysize 192, 224, 256, 384 or 521 bit. |
Methods inherited from class java.security.KeyPairGenerator |
genKeyPair, getAlgorithm, getInstance, getInstance, getInstance, getProvider, initialize, initialize |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String[] DEFAULT_CURVES
initialize(int keysize, SecureRandom random)
public static final int DEFAULT_KEY_SIZE
public static final int[] KEY_SIZES
Constructor Detail |
public ECDSAKeyPairGeneratorImpl()
Method Detail |
public java.security.KeyPair generateKeyPair()
public void initialize(java.security.spec.AlgorithmParameterSpec spec) throws java.security.InvalidAlgorithmParameterException
spec
- an AlgorithmParameterSpec
value, which must be a ECCParameterSpec
java.security.InvalidAlgorithmParameterException
- if the spec is invalidpublic void initialize(ECDSAParams params, java.security.SecureRandom random)
initialize
in interface ECDSAKeyPairGenerator
params
- the domain parameters.random
- a secure random source, may also be null
.ECDSAKeyPairGenerator
public void initialize(int keysize, java.security.SecureRandom random)
keysize
- the required strength. If no NIST parameters with this
size is available the next stronger parameter is taken (or 521)random
- the source of randomness.
|
IAIK ECC version 2.18 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |