Top Description Inners Fields Constructors Methods
org.bouncycastle.crypto.general

public final Class EC

extends Object
Class Inheritance
Imports
java.security.AccessController, .PrivilegedAction, .SecureRandom, org.bouncycastle.crypto.Algorithm, .AsymmetricPrivateKey, .AsymmetricPublicKey, .DigestAlgorithm, .OutputSigner, .OutputVerifier, org.bouncycastle.crypto.asymmetric.AsymmetricECPrivateKey, .AsymmetricECPublicKey, .AsymmetricKeyPair, .ECDomainParameters, .NamedECDomainParameters, org.bouncycastle.crypto.fips.FipsEC, .FipsSHS, org.bouncycastle.crypto.internal.Digest, org.bouncycastle.crypto.internal.params.EcDomainParameters, .EcNamedDomainParameters, .EcPrivateKeyParameters, .EcPublicKeyParameters, .ParametersWithRandom, org.bouncycastle.util.Properties

Source class for non-FIPS implementations of Elliptic Curve based algorithms.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
EC.DSAOperatorFactory

Operator factory for creating non-FIPS EC DSA based signing and verification operators.

public static class
EC.DSAParameters

EC DSA signature parameters for non-FIPS algorithms.

public static class
EC.KeyGenParameters

EC key pair generation parameters for non-FIPS usages.

public static class
EC.KeyPairGenerator

EC key pair generator class for non-FIPS usages.

private static enum

Field Summary

Modifier and TypeField and Description
public static final Algorithm
ALGORITHM

Basic Elliptic Curve key marker, can be used for creating general purpose Elliptic Curve keys.

public static final EC.DSAParameters
DDSA

Elliptic Curve Deterministic DSA algorithm parameter source - default is SHA-1

public static final EC.DSAParameters
DSA

Elliptic Curve DSA algorithm parameter source - default is SHA-1

Constructor Summary

AccessConstructor and Description
private
EC()

Method Summary

Modifier and TypeMethod and Description
private static void
private static EcDomainParameters
private static EcPrivateKeyParameters
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ALGORITHMback to summary
public static final Algorithm ALGORITHM

Basic Elliptic Curve key marker, can be used for creating general purpose Elliptic Curve keys.

DDSAback to summary
public static final EC.DSAParameters DDSA

Elliptic Curve Deterministic DSA algorithm parameter source - default is SHA-1

DSAback to summary
public static final EC.DSAParameters DSA

Elliptic Curve DSA algorithm parameter source - default is SHA-1

Constructor Detail

ECback to summary
private EC()

Method Detail

checkEnabledback to summary
private static void checkEnabled()
getDomainParamsback to summary
private static EcDomainParameters getDomainParams(ECDomainParameters curveParams)
getLwKeyback to summary
private static EcPrivateKeyParameters getLwKey(final AsymmetricECPrivateKey privKey)
org.bouncycastle.crypto.general back to summary

public final Class EC.DSAOperatorFactory

extends GuardedSignatureOperatorFactory<EC.DSAParameters>
Class Inheritance

Operator factory for creating non-FIPS EC DSA based signing and verification operators.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected OutputSigner<EC.DSAParameters>
protected OutputVerifier<EC.DSAParameters>
Inherited from org.bouncycastle.crypto.general.GuardedSignatureOperatorFactory:
createSignercreateVerifier

Constructor Detail

DSAOperatorFactoryback to summary
public DSAOperatorFactory()

Method Detail

doCreateSignerback to summary
protected OutputSigner<EC.DSAParameters> doCreateSigner(AsymmetricPrivateKey key, EC.DSAParameters parameters)

Implements abstract org.bouncycastle.crypto.general.GuardedSignatureOperatorFactory.doCreateSigner.

Annotations
@Override
doCreateVerifierback to summary
protected OutputVerifier<EC.DSAParameters> doCreateVerifier(AsymmetricPublicKey key, EC.DSAParameters parameters)

Implements abstract org.bouncycastle.crypto.general.GuardedSignatureOperatorFactory.doCreateVerifier.

Annotations
@Override
org.bouncycastle.crypto.general back to summary

public final Class EC.DSAParameters

extends GeneralParameters
Class Inheritance

EC DSA signature parameters for non-FIPS algorithms.

Field Summary

Modifier and TypeField and Description
private final DigestAlgorithm

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public DigestAlgorithm

Returns:

the digest algorithm
getDigestAlgorithm
()

Return the algorithm for the underlying digest these parameters will use.

public EC.DSAParameters

Returns:

a new parameter for signature generation.
withDigestAlgorithm
(DigestAlgorithm
the digest to use for signature generation.
digestAlgorithm
)

Return a new parameter set with for the passed in digest algorithm.

Inherited from org.bouncycastle.crypto.general.GeneralParameters:
getAlgorithm

Field Detail

digestAlgorithmback to summary
private final DigestAlgorithm digestAlgorithm

Constructor Detail

DSAParametersback to summary
pack-priv DSAParameters(GeneralAlgorithm type, DigestAlgorithm digestAlgorithm)

Method Detail

getDigestAlgorithmback to summary
public DigestAlgorithm getDigestAlgorithm()

Return the algorithm for the underlying digest these parameters will use.

Returns:DigestAlgorithm

the digest algorithm

withDigestAlgorithmback to summary
public EC.DSAParameters withDigestAlgorithm(DigestAlgorithm digestAlgorithm)

Return a new parameter set with for the passed in digest algorithm.

Parameters
digestAlgorithm:DigestAlgorithm

the digest to use for signature generation.

Returns:EC.DSAParameters

a new parameter for signature generation.

org.bouncycastle.crypto.general back to summary

public final Class EC.KeyGenParameters

extends GeneralParameters
Class Inheritance

EC key pair generation parameters for non-FIPS usages.

Field Summary

Modifier and TypeField and Description
private final ECDomainParameters

Constructor Summary

AccessConstructor and Description
public
KeyGenParameters(ECDomainParameters
the EC domain parameters.
domainParameters
)

Base constructor for specific domain parameters.

public
KeyGenParameters(EC.DSAParameters
parameter set representing the algorithm involved.
parameters
,
ECDomainParameters
the EC domain parameters.
domainParameters
)

Key Generation parameters for a specific algorithm set.

private
KeyGenParameters(Algorithm algorithm, ECDomainParameters domainParameters)

Method Summary

Modifier and TypeMethod and Description
public ECDomainParameters
Inherited from org.bouncycastle.crypto.general.GeneralParameters:
getAlgorithm

Field Detail

domainParametersback to summary
private final ECDomainParameters domainParameters

Constructor Detail

KeyGenParametersback to summary
public KeyGenParameters(ECDomainParameters domainParameters)

Base constructor for specific domain parameters.

Parameters
domainParameters:ECDomainParameters

the EC domain parameters.

KeyGenParametersback to summary
public KeyGenParameters(EC.DSAParameters parameters, ECDomainParameters domainParameters)

Key Generation parameters for a specific algorithm set.

Parameters
parameters:EC.DSAParameters

parameter set representing the algorithm involved.

domainParameters:ECDomainParameters

the EC domain parameters.

KeyGenParametersback to summary
private KeyGenParameters(Algorithm algorithm, ECDomainParameters domainParameters)

Method Detail

getDomainParametersback to summary
public ECDomainParameters getDomainParameters()
org.bouncycastle.crypto.general back to summary

public final Class EC.KeyPairGenerator

extends GuardedAsymmetricKeyPairGenerator
Class Inheritance

EC key pair generator class for non-FIPS usages.

Field Summary

Modifier and TypeField and Description
private final FipsEC.KeyPairGenerator

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected AsymmetricKeyPair<P extends AsymmetricPublicKey, S extends AsymmetricPrivateKey>
Inherited from org.bouncycastle.crypto.general.GuardedAsymmetricKeyPairGenerator:
generateKeyPairgetParameters

Field Detail

kpGenback to summary
private final FipsEC.KeyPairGenerator kpGen

Constructor Detail

KeyPairGeneratorback to summary
public KeyPairGenerator(EC.KeyGenParameters keyGenParameters, SecureRandom random)

Method Detail

doGenerateKeyPairback to summary
protected AsymmetricKeyPair<P extends AsymmetricPublicKey, S extends AsymmetricPrivateKey> doGenerateKeyPair()

Implements abstract org.bouncycastle.crypto.general.GuardedAsymmetricKeyPairGenerator.doGenerateKeyPair.

Annotations
@Override
org.bouncycastle.crypto.general back to summary

private final Enum EC.Variations

extends Enum<EC.Variations>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final EC.Variations
public static final EC.Variations

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static EC.Variations
public static EC.Variations[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ECDDSAback to summary
public static final EC.Variations ECDDSA
ECDSAback to summary
public static final EC.Variations ECDSA

Constructor Detail

Variationsback to summary
private Variations()

Method Detail

valueOfback to summary
public static EC.Variations valueOf(String name)
valuesback to summary
public static EC.Variations[] values()