Class GMKeyPairGeneratorSpi.BaseSM2
- java.lang.Object
-
- java.security.KeyPairGeneratorSpi
-
- java.security.KeyPairGenerator
-
- org.bouncycastle.jcajce.provider.asymmetric.ec.GMKeyPairGeneratorSpi
-
- org.bouncycastle.jcajce.provider.asymmetric.ec.GMKeyPairGeneratorSpi.BaseSM2
-
- Direct Known Subclasses:
GMKeyPairGeneratorSpi.SM2
- Enclosing class:
- GMKeyPairGeneratorSpi
public static class GMKeyPairGeneratorSpi.BaseSM2 extends GMKeyPairGeneratorSpi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.bouncycastle.jcajce.provider.asymmetric.ec.GMKeyPairGeneratorSpi
GMKeyPairGeneratorSpi.BaseSM2, GMKeyPairGeneratorSpi.SM2
-
-
Constructor Summary
Constructors Constructor Description BaseSM2()
BaseSM2(java.lang.String algorithm, ProviderConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ECKeyGenerationParameters
createKeyGenParamsBC(ECParameterSpec p, java.security.SecureRandom r)
protected ECKeyGenerationParameters
createKeyGenParamsJCE(X9ECParameters x9, java.security.SecureRandom r)
java.security.KeyPair
generateKeyPair()
void
initialize(int strength, java.security.SecureRandom random)
void
initialize(java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random)
protected void
initializeNamedCurve(java.lang.String curveName, java.security.SecureRandom random)
-
-
-
Constructor Detail
-
BaseSM2
public BaseSM2()
-
BaseSM2
public BaseSM2(java.lang.String algorithm, ProviderConfiguration configuration)
-
-
Method Detail
-
initialize
public void initialize(int strength, java.security.SecureRandom random)
- Overrides:
initialize
in classjava.security.KeyPairGenerator
-
initialize
public void initialize(java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random) throws java.security.InvalidAlgorithmParameterException
- Overrides:
initialize
in classjava.security.KeyPairGenerator
- Throws:
java.security.InvalidAlgorithmParameterException
-
generateKeyPair
public java.security.KeyPair generateKeyPair()
- Overrides:
generateKeyPair
in classjava.security.KeyPairGenerator
-
createKeyGenParamsBC
protected ECKeyGenerationParameters createKeyGenParamsBC(ECParameterSpec p, java.security.SecureRandom r)
-
createKeyGenParamsJCE
protected ECKeyGenerationParameters createKeyGenParamsJCE(X9ECParameters x9, java.security.SecureRandom r)
-
initializeNamedCurve
protected void initializeNamedCurve(java.lang.String curveName, java.security.SecureRandom random) throws java.security.InvalidAlgorithmParameterException
- Throws:
java.security.InvalidAlgorithmParameterException
-
-