Top Fields Constructors Methods
org.bouncycastle.crypto.generators

public Class ECKeyPairGenerator

extends Object
implements AsymmetricCipherKeyPairGenerator, ECConstants
Class Inheritance
All Implemented Interfaces
org.bouncycastle.math.ec.ECConstants, org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator
Known Direct Subclasses
org.bouncycastle.crypto.generators.SM2KeyPairGenerator, org.bouncycastle.crypto.generators.DSTU4145KeyPairGenerator
Imports
java.math.BigInteger, java.security.SecureRandom, org.bouncycastle.crypto.AsymmetricCipherKeyPair, .AsymmetricCipherKeyPairGenerator, .CryptoServicePurpose, .CryptoServicesRegistrar, .KeyGenerationParameters, org.bouncycastle.crypto.constraints.ConstraintUtils, .DefaultServiceProperties, org.bouncycastle.crypto.params.ECDomainParameters, .ECKeyGenerationParameters, .ECPrivateKeyParameters, .ECPublicKeyParameters, org.bouncycastle.math.ec.ECConstants, .ECMultiplier, .ECPoint, .FixedPointCombMultiplier, .WNafUtil, org.bouncycastle.util.BigIntegers

Field Summary

Modifier and TypeField and Description
private final String
pack-priv ECDomainParameters
pack-priv SecureRandom

Constructor Summary

AccessConstructor and Description
public
protected

Method Summary

Modifier and TypeMethod and Description
protected ECMultiplier
public AsymmetricCipherKeyPair
generateKeyPair()

Implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator.generateKeyPair.

Given the domain parameters this routine generates an EC key pair in accordance with X9.62 section 5.2.1 pages 26, 27.
public void
init(KeyGenerationParameters
the parameters the key pair is to be initialised with.
param
)

Implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator.init.

intialise the key pair generator.
protected boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nameback to summary
private final String name
paramsback to summary
pack-priv ECDomainParameters params
randomback to summary
pack-priv SecureRandom random

Constructor Detail

ECKeyPairGeneratorback to summary
public ECKeyPairGenerator()
ECKeyPairGeneratorback to summary
protected ECKeyPairGenerator(String name)

Method Detail

createBasePointMultiplierback to summary
protected ECMultiplier createBasePointMultiplier()
generateKeyPairback to summary
public AsymmetricCipherKeyPair generateKeyPair()

Implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator.generateKeyPair.

Given the domain parameters this routine generates an EC key pair in accordance with X9.62 section 5.2.1 pages 26, 27.

Returns:AsymmetricCipherKeyPair

Doc from org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator.generateKeyPair.

an AsymmetricCipherKeyPair containing the generated keys.

initback to summary
public void init(KeyGenerationParameters param)

Implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator.init.

Doc from org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator.init.

intialise the key pair generator.

Parameters
param:KeyGenerationParameters

the parameters the key pair is to be initialised with.

isOutOfRangeDback to summary
protected boolean isOutOfRangeD(BigInteger d, BigInteger n)