Class KeyPairGeneratorSpi
java.lang.Object
java.security.KeyPairGeneratorSpi
org.bouncycastle.jcajce.provider.asymmetric.compositesignatures.KeyPairGeneratorSpi
- Direct Known Subclasses:
KeyPairGeneratorSpi.Falcon512_ECDSA_brainpoolP256r1_SHA256
,KeyPairGeneratorSpi.Falcon512_ECDSA_P256_SHA256
,KeyPairGeneratorSpi.Falcon512_Ed25519_SHA512
,KeyPairGeneratorSpi.MLDSA44_ECDSA_brainpoolP256r1_SHA256
,KeyPairGeneratorSpi.MLDSA44_ECDSA_P256_SHA256
,KeyPairGeneratorSpi.MLDSA44_Ed25519_SHA512
,KeyPairGeneratorSpi.MLDSA44_RSA2048_PKCS15_SHA256
,KeyPairGeneratorSpi.MLDSA44_RSA2048_PSS_SHA256
,KeyPairGeneratorSpi.MLDSA65_ECDSA_brainpoolP256r1_SHA512
,KeyPairGeneratorSpi.MLDSA65_ECDSA_P256_SHA512
,KeyPairGeneratorSpi.MLDSA65_Ed25519_SHA512
,KeyPairGeneratorSpi.MLDSA65_RSA3072_PKCS15_SHA512
,KeyPairGeneratorSpi.MLDSA65_RSA3072_PSS_SHA512
,KeyPairGeneratorSpi.MLDSA87_ECDSA_brainpoolP384r1_SHA512
,KeyPairGeneratorSpi.MLDSA87_ECDSA_P384_SHA512
,KeyPairGeneratorSpi.MLDSA87_Ed448_SHA512
KeyPairGenerator class for composite signatures. Selected algorithm is set by the "subclasses" at the end of this file.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize
(int keySize, SecureRandom random) Native public method.void
initialize
(AlgorithmParameterSpec paramSpec, SecureRandom secureRandom) Setting custom AlgorithmParameterSpec is not supported since the composite signature algorithm definition allow only for one specific parameter spec which is initialized by the initializeParameters method.
-
Method Details
-
initialize
Native public method. There is no notion of a keysize for composite signatures. Therefore, this method is unsupported. For setting a custom SecureRandom the other initialize method must be used.- Specified by:
initialize
in classKeyPairGeneratorSpi
- Parameters:
keySize
-random
-
-
initialize
public void initialize(AlgorithmParameterSpec paramSpec, SecureRandom secureRandom) throws InvalidAlgorithmParameterException Setting custom AlgorithmParameterSpec is not supported since the composite signature algorithm definition allow only for one specific parameter spec which is initialized by the initializeParameters method. This method only serves to set a custom SecureRandom.- Overrides:
initialize
in classKeyPairGeneratorSpi
- Parameters:
paramSpec
- Unsupported, needs to be null.secureRandom
- A SecureRandom used by component key generators.- Throws:
InvalidAlgorithmParameterException
-
generateKeyPair
- Specified by:
generateKeyPair
in classKeyPairGeneratorSpi
-