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

public final Class GOST3410

extends Object
Class Inheritance
Imports
java.math.BigInteger, java.security.AccessController, .PrivilegedAction, .SecureRandom, org.bouncycastle.crypto.Algorithm, .AsymmetricPrivateKey, .AsymmetricPublicKey, .DigestAlgorithm, .OutputSignerUsingSecureRandom, .OutputVerifier, org.bouncycastle.crypto.asymmetric.AsymmetricGOST3410PrivateKey, .AsymmetricGOST3410PublicKey, .AsymmetricKeyPair, .GOST3410DomainParameters, .GOST3410Parameters, org.bouncycastle.crypto.internal.AsymmetricCipherKeyPair, .DSA, .Digest, org.bouncycastle.crypto.internal.params.ParametersWithRandom, org.bouncycastle.crypto.internal.test.ConsistencyTest, org.bouncycastle.util.encoders.Hex

Source class for implementations of GOST3410 based algorithms.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
GOST3410.KeyGenParameters

GOST3410 key pair generation parameters.

public static class
GOST3410.KeyPairGenerator

GOST3410 key pair generator class.

public static class
GOST3410.SignatureOperatorFactory

Operator factory for creating GOST3410 based signing and verification operators.

public static class
GOST3410.SignatureParameters

Parameters for GOST3410 signatures.

private static enum

Field Summary

Modifier and TypeField and Description
public static final GeneralAlgorithm
ALGORITHM

Basic GOST-3410 key marker, can be used for creating general purpose GOST-3410 keys.

public static final GOST3410.SignatureParameters
GOST3410

EC GOST GOST3410 algorithm parameter source - default is GOST-3411

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static Gost3410Parameters
private static Gost3410PrivateKeyParameters
private static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ALGORITHMback to summary
public static final GeneralAlgorithm ALGORITHM

Basic GOST-3410 key marker, can be used for creating general purpose GOST-3410 keys.

GOST3410back to summary
public static final GOST3410.SignatureParameters GOST3410

EC GOST GOST3410 algorithm parameter source - default is GOST-3411

Constructor Detail

GOST3410back to summary
private GOST3410()

Method Detail

getDomainParamsback to summary
private static Gost3410Parameters getDomainParams(GOST3410Parameters<GOST3410DomainParameters> gostParameters)
getLwKeyback to summary
private static Gost3410PrivateKeyParameters getLwKey(final AsymmetricGOST3410PrivateKey privKey)
validateKeyPairback to summary
private static void validateKeyPair(AsymmetricCipherKeyPair kp)
org.bouncycastle.crypto.general back to summary

public final Class GOST3410.KeyGenParameters

extends GeneralParameters
Class Inheritance

GOST3410 key pair generation parameters.

Field Summary

Modifier and TypeField and Description
private final GOST3410Parameters<GOST3410DomainParameters>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public GOST3410Parameters<GOST3410DomainParameters>
Inherited from org.bouncycastle.crypto.general.GeneralParameters:
getAlgorithm

Field Detail

domainParametersback to summary
private final GOST3410Parameters<GOST3410DomainParameters> domainParameters

Constructor Detail

KeyGenParametersback to summary
public KeyGenParameters(GOST3410Parameters<GOST3410DomainParameters> domainParameters)

Method Detail

getDomainParametersback to summary
public GOST3410Parameters<GOST3410DomainParameters> getDomainParameters()
org.bouncycastle.crypto.general back to summary

public final Class GOST3410.KeyPairGenerator

extends GuardedAsymmetricKeyPairGenerator<GOST3410.KeyGenParameters, AsymmetricGOST3410PublicKey, AsymmetricGOST3410PrivateKey>
Class Inheritance

GOST3410 key pair generator class.

Field Summary

Modifier and TypeField and Description
private final Gost3410KeyPairGenerator
private final Gost3410KeyGenerationParameters
private final GOST3410Parameters<GOST3410DomainParameters>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected AsymmetricKeyPair<AsymmetricGOST3410PublicKey, AsymmetricGOST3410PrivateKey>
Inherited from org.bouncycastle.crypto.general.GuardedAsymmetricKeyPairGenerator:
generateKeyPairgetParameters

Field Detail

engineback to summary
private final Gost3410KeyPairGenerator engine
paramback to summary
private final Gost3410KeyGenerationParameters param
parametersback to summary
private final GOST3410Parameters<GOST3410DomainParameters> parameters

Hides org.bouncycastle.crypto.general.GuardedAsymmetricKeyPairGenerator.parameters.

Constructor Detail

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

Method Detail

doGenerateKeyPairback to summary
protected AsymmetricKeyPair<AsymmetricGOST3410PublicKey, AsymmetricGOST3410PrivateKey> doGenerateKeyPair()

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

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

public final Class GOST3410.SignatureOperatorFactory

extends GuardedSignatureOperatorFactory<GOST3410.SignatureParameters>
Class Inheritance

Operator factory for creating GOST3410 based signing and verification operators.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public OutputSignerUsingSecureRandom<GOST3410.SignatureParameters>
public OutputVerifier<GOST3410.SignatureParameters>
Inherited from org.bouncycastle.crypto.general.GuardedSignatureOperatorFactory:
createSignercreateVerifier

Constructor Detail

SignatureOperatorFactoryback to summary
public SignatureOperatorFactory()

Method Detail

doCreateSignerback to summary
public OutputSignerUsingSecureRandom<GOST3410.SignatureParameters> doCreateSigner(AsymmetricPrivateKey key, final GOST3410.SignatureParameters parameters)

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

Annotations
@Override
doCreateVerifierback to summary
public OutputVerifier<GOST3410.SignatureParameters> doCreateVerifier(AsymmetricPublicKey key, final GOST3410.SignatureParameters parameters)

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

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

public final Class GOST3410.SignatureParameters

extends GeneralParameters
Class Inheritance

Parameters for GOST3410 signatures.

Field Summary

Modifier and TypeField and Description
private final DigestAlgorithm

Constructor Summary

AccessConstructor and Description
pack-priv
private

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 GOST3410.SignatureParameters

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

SignatureParametersback to summary
pack-priv SignatureParameters()
SignatureParametersback to summary
private SignatureParameters(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 GOST3410.SignatureParameters 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:GOST3410.SignatureParameters

a new parameter for signature generation.

org.bouncycastle.crypto.general back to summary

private final Enum GOST3410.Variations

extends Enum<GOST3410.Variations>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final GOST3410.Variations

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Field Detail

GOST3410back to summary
public static final GOST3410.Variations GOST3410

Constructor Detail

Variationsback to summary
private Variations()

Method Detail

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