Bouncy Castle Cryptography Library 1.77.0

org.bouncycastle.jcajce.provider.asymmetric.ec
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


Inner classes inherited from class org.bouncycastle.jcajce.provider.asymmetric.ec.GMKeyPairGeneratorSpi
GMKeyPairGeneratorSpi.BaseSM2, GMKeyPairGeneratorSpi.SM2
 
Constructor Summary
GMKeyPairGeneratorSpi.BaseSM2()
           
GMKeyPairGeneratorSpi.BaseSM2(java.lang.String algorithm, ProviderConfiguration configuration)
           
 
Method Summary
protected  ECKeyGenerationParameters createKeyGenParamsBC(ECParameterSpec p, java.security.SecureRandom r)
           
protected  ECKeyGenerationParameters createKeyGenParamsJCE(X9ECParameters x9, java.security.SecureRandom r)
           
 java.security.KeyPair generateKeyPair()
           
 void initialize(java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random)
           
 void initialize(int strength, java.security.SecureRandom random)
           
protected  void initializeNamedCurve(java.lang.String curveName, java.security.SecureRandom random)
           
 
Methods inherited from class java.security.KeyPairGenerator
genKeyPair, getAlgorithm, getInstance, getInstance, getProvider, initialize, initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GMKeyPairGeneratorSpi.BaseSM2

public GMKeyPairGeneratorSpi.BaseSM2()

GMKeyPairGeneratorSpi.BaseSM2

public GMKeyPairGeneratorSpi.BaseSM2(java.lang.String algorithm,
                                     ProviderConfiguration configuration)
Method Detail

initialize

public void initialize(int strength,
                       java.security.SecureRandom random)
Overrides:
initialize in class java.security.KeyPairGenerator

initialize

public void initialize(java.security.spec.AlgorithmParameterSpec params,
                       java.security.SecureRandom random)
                throws java.security.InvalidAlgorithmParameterException
Overrides:
initialize in class java.security.KeyPairGenerator

generateKeyPair

public java.security.KeyPair generateKeyPair()
Overrides:
generateKeyPair in class java.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

Bouncy Castle Cryptography Library 1.77.0