public class DSAKeyPair extends AsymmetricCryptoKeyPair
KEY_LENGTH_1024, KEY_LENGTH_512
Constructor and Description |
---|
DSAKeyPair(MyDSAPrivateKey a_privateKey)
Creates a new DSA key pair.
|
Modifier and Type | Method and Description |
---|---|
static DSAKeyPair |
getInstance(java.security.SecureRandom a_secureRandom,
int a_keyLength,
int a_certainty)
This creates a new DSA key pair.
|
createPublicKey, getPrivate, getPublic
public DSAKeyPair(MyDSAPrivateKey a_privateKey)
a_privateKey
- a private keypublic static DSAKeyPair getInstance(java.security.SecureRandom a_secureRandom, int a_keyLength, int a_certainty)
a_secureRandom
- A random number as initialization for the key generator.a_keyLength
- The length of the key in bits. For the current implementation of
bouncycastle it must be a number between 256 and 1024 which is a multiple
of 64.a_certainty
- Measure of robustness of prime. For FIPS 186-2 compliance this
value should be at least 80.Copyright © 2023. All rights reserved.