Top Fields Constructors Methods
org.bouncycastle.crypto.general

pack-priv Class EcKeyPairGenerator

extends Object
implements AsymmetricCipherKeyPairGenerator, ECConstants
Class Inheritance
All Implemented Interfaces
org.bouncycastle.math.ec.ECConstants, org.bouncycastle.crypto.internal.AsymmetricCipherKeyPairGenerator
Known Direct Subclasses
org.bouncycastle.crypto.general.DSTU4145KeyPairGenerator
Imports
java.math.BigInteger, java.security.SecureRandom, org.bouncycastle.crypto.internal.AsymmetricCipherKeyPair, .AsymmetricCipherKeyPairGenerator, .KeyGenerationParameters, org.bouncycastle.crypto.internal.params.EcDomainParameters, .EcPrivateKeyParameters, .EcPublicKeyParameters, org.bouncycastle.math.ec.ECConstants, .ECMultiplier, .ECPoint, .FixedPointCombMultiplier, .WNafUtil

Field Summary

Modifier and TypeField and Description
pack-priv EcDomainParameters
pack-priv SecureRandom

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

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

Implements org.bouncycastle.crypto.internal.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.internal.AsymmetricCipherKeyPairGenerator.init.

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

Field Detail

paramsback to summary
pack-priv EcDomainParameters params
randomback to summary
pack-priv SecureRandom random

Constructor Detail

EcKeyPairGeneratorback to summary
pack-priv EcKeyPairGenerator()

Method Detail

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

Implements org.bouncycastle.crypto.internal.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.internal.AsymmetricCipherKeyPairGenerator.generateKeyPair.

an AsymmetricCipherKeyPair containing the generated keys.

initback to summary
public void init(KeyGenerationParameters param)

Implements org.bouncycastle.crypto.internal.AsymmetricCipherKeyPairGenerator.init.

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

intialise the key pair generator.

Parameters
param:KeyGenerationParameters

the parameters the key pair is to be initialised with.