Top Inners Fields Constructors Methods
org.bouncycastle.jcajce.provider.symmetric

public final Class GOST28147

extends Object
Class Inheritance
Imports
java.io.IOException, java.security.AlgorithmParameters, .InvalidAlgorithmParameterException, .SecureRandom, java.security.spec.AlgorithmParameterSpec, .InvalidParameterSpecException, java.util.HashMap, .Map, javax.crypto.spec.IvParameterSpec, org.bouncycastle.asn1.ASN1ObjectIdentifier, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers, .GOST28147Parameters, org.bouncycastle.crypto.BufferedBlockCipher, .CipherKeyGenerator, .CryptoServicesRegistrar, org.bouncycastle.crypto.engines.CryptoProWrapEngine, .GOST28147Engine, .GOST28147WrapEngine, org.bouncycastle.crypto.macs.GOST28147Mac, org.bouncycastle.crypto.modes.CBCBlockCipher, .GCFBBlockCipher, org.bouncycastle.internal.asn1.rosstandart.RosstandartObjectIdentifiers, org.bouncycastle.jcajce.provider.config.ConfigurableProvider, org.bouncycastle.jcajce.provider.symmetric.util.BaseAlgorithmParameterGenerator, .BaseAlgorithmParameters, .BaseBlockCipher, .BaseKeyGenerator, .BaseMac, .BaseWrapCipher, org.bouncycastle.jcajce.provider.util.AlgorithmProvider, org.bouncycastle.jcajce.spec.GOST28147ParameterSpec, org.bouncycastle.util.Strings

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
public abstract static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
GOST28147.Mac

GOST28147

public static class

Field Summary

Modifier and TypeField and Description
private static Map<String, ASN1ObjectIdentifier>
private static Map<ASN1ObjectIdentifier, String>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nameMappingsback to summary
private static Map<String, ASN1ObjectIdentifier> nameMappings
oidMappingsback to summary
private static Map<ASN1ObjectIdentifier, String> oidMappings

Constructor Detail

GOST28147back to summary
private GOST28147()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class GOST28147.AlgParamGen

extends BaseAlgorithmParameterGenerator
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv byte[]
pack-priv byte[]
Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseAlgorithmParameterGenerator:
randomstrength

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected AlgorithmParameters
protected void
engineInit(AlgorithmParameterSpec
the set of algorithm-specific parameter generation values.
genParamSpec
,
SecureRandom
the source of randomness.
random
)

Implements abstract java.security.AlgorithmParameterGeneratorSpi.engineInit.

Initializes this parameter generator with a set of algorithm-specific parameter generation values.

Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseAlgorithmParameterGenerator:
createParametersInstanceengineInit

Field Detail

ivback to summary
pack-priv byte[] iv
sBoxback to summary
pack-priv byte[] sBox

Constructor Detail

AlgParamGenback to summary
public AlgParamGen()

Method Detail

engineGenerateParametersback to summary
protected AlgorithmParameters engineGenerateParameters()

Implements abstract java.security.AlgorithmParameterGeneratorSpi.engineGenerateParameters.

Doc from java.security.AlgorithmParameterGeneratorSpi.engineGenerateParameters.

Generates the parameters.

Returns:AlgorithmParameters

the new AlgorithmParameters object.

engineInitback to summary
protected void engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random) throws InvalidAlgorithmParameterException

Implements abstract java.security.AlgorithmParameterGeneratorSpi.engineInit.

Doc from java.security.AlgorithmParameterGeneratorSpi.engineInit.

Initializes this parameter generator with a set of algorithm-specific parameter generation values.

Parameters
genParamSpec:AlgorithmParameterSpec

the set of algorithm-specific parameter generation values.

random:SecureRandom

the source of randomness.

Exceptions
InvalidAlgorithmParameterException:
if the given parameter generation values are inappropriate for this parameter generator.
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class GOST28147.AlgParams

extends BaseAlgParams
Class Inheritance

Field Summary

Modifier and TypeField and Description
private byte[]
private ASN1ObjectIdentifier

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
engineInit(AlgorithmParameterSpec
the parameter specification.
paramSpec
)

Overrides org.bouncycastle.jcajce.provider.symmetric.GOST28147.BaseAlgParams.engineInit.

Initializes this parameters object using the parameters specified in paramSpec.

protected String
engineToString()

Implements abstract java.security.AlgorithmParametersSpi.engineToString.

Returns a formatted string describing the parameters.

protected AlgorithmParameterSpec
protected byte[]
protected void
Inherited from org.bouncycastle.jcajce.provider.symmetric.GOST28147.BaseAlgParams:
engineGetEncodedengineGetEncodedengineInitengineInitgetSBoxOIDgetSBoxOID

Field Detail

ivback to summary
private byte[] iv

Hides org.bouncycastle.jcajce.provider.symmetric.GOST28147.BaseAlgParams.iv.

sBoxback to summary
private ASN1ObjectIdentifier sBox

Hides org.bouncycastle.jcajce.provider.symmetric.GOST28147.BaseAlgParams.sBox.

Constructor Detail

AlgParamsback to summary
public AlgParams()

Method Detail

engineInitback to summary
protected void engineInit(AlgorithmParameterSpec paramSpec) throws InvalidParameterSpecException

Overrides org.bouncycastle.jcajce.provider.symmetric.GOST28147.BaseAlgParams.engineInit.

Doc from java.security.AlgorithmParametersSpi.engineInit.

Initializes this parameters object using the parameters specified in paramSpec.

Parameters
paramSpec:AlgorithmParameterSpec

the parameter specification.

Exceptions
InvalidParameterSpecException:
if the given parameter specification is inappropriate for the initialization of this parameter object.
engineToStringback to summary
protected String engineToString()

Implements abstract java.security.AlgorithmParametersSpi.engineToString.

Doc from java.security.AlgorithmParametersSpi.engineToString.

Returns a formatted string describing the parameters.

Returns:String

a formatted string describing the parameters.

localEngineGetParameterSpecback to summary
protected AlgorithmParameterSpec localEngineGetParameterSpec(Class<T> paramSpec) throws InvalidParameterSpecException

Overrides org.bouncycastle.jcajce.provider.symmetric.GOST28147.BaseAlgParams.localEngineGetParameterSpec.

localGetEncodedback to summary
protected byte[] localGetEncoded() throws IOException

Overrides org.bouncycastle.jcajce.provider.symmetric.GOST28147.BaseAlgParams.localGetEncoded.

localInitback to summary
protected void localInit(byte[] params) throws IOException

Implements abstract org.bouncycastle.jcajce.provider.symmetric.GOST28147.BaseAlgParams.localInit.

org.bouncycastle.jcajce.provider.symmetric back to summary

public abstract Class GOST28147.BaseAlgParams

extends BaseAlgorithmParameters
Class Inheritance
Known Direct Subclasses
org.bouncycastle.jcajce.provider.symmetric.GOST28147.AlgParams

Field Summary

Modifier and TypeField and Description
private byte[]
private ASN1ObjectIdentifier

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected final byte[]
engineGetEncoded()

Implements abstract java.security.AlgorithmParametersSpi.engineGetEncoded.

Returns the parameters in their primary encoding format.

protected final byte[]
engineGetEncoded(String
the name of the encoding format.
format
)

Implements abstract java.security.AlgorithmParametersSpi.engineGetEncoded.

Returns the parameters encoded in the specified format.

protected final void
engineInit(byte[]
the encoded parameters.
encoding
)

Implements abstract java.security.AlgorithmParametersSpi.engineInit.

Imports the specified parameters and decodes them according to the primary decoding format for parameters.

protected final void
engineInit(byte[]
the encoded parameters.
params
,
String
the name of the decoding format.
format
)

Implements abstract java.security.AlgorithmParametersSpi.engineInit.

Imports the parameters from params and decodes them according to the specified decoding format.

protected void
engineInit(AlgorithmParameterSpec
the parameter specification.
paramSpec
)

Implements abstract java.security.AlgorithmParametersSpi.engineInit.

Initializes this parameters object using the parameters specified in paramSpec.

protected static ASN1ObjectIdentifier
protected static ASN1ObjectIdentifier
getSBoxOID(byte[] sBox)

protected AlgorithmParameterSpec
protected byte[]
pack-priv abstract void
localInit(byte[] params)

Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseAlgorithmParameters:
engineGetParameterSpecisASN1FormatString

Field Detail

ivback to summary
private byte[] iv
sBoxback to summary
private ASN1ObjectIdentifier sBox

Constructor Detail

BaseAlgParamsback to summary
public BaseAlgParams()

Method Detail

engineGetEncodedback to summary
protected final byte[] engineGetEncoded() throws IOException

Implements abstract java.security.AlgorithmParametersSpi.engineGetEncoded.

Doc from java.security.AlgorithmParametersSpi.engineGetEncoded.

Returns the parameters in their primary encoding format. The primary encoding format for parameters is ASN.1, if an ASN.1 specification for this type of parameters exists.

Returns:byte[]

the parameters encoded using their primary encoding format.

Exceptions
IOException:
on encoding errors.
engineGetEncodedback to summary
protected final byte[] engineGetEncoded(String format) throws IOException

Implements abstract java.security.AlgorithmParametersSpi.engineGetEncoded.

Doc from java.security.AlgorithmParametersSpi.engineGetEncoded.

Returns the parameters encoded in the specified format. If format is null, the primary encoding format for parameters is used. The primary encoding format is ASN.1, if an ASN.1 specification for these parameters exists.

Parameters
format:String

the name of the encoding format.

Returns:byte[]

the parameters encoded using the specified encoding scheme.

Exceptions
IOException:
on encoding errors.
engineInitback to summary
protected final void engineInit(byte[] encoding) throws IOException

Implements abstract java.security.AlgorithmParametersSpi.engineInit.

Doc from java.security.AlgorithmParametersSpi.engineInit.

Imports the specified parameters and decodes them according to the primary decoding format for parameters. The primary decoding format for parameters is ASN.1, if an ASN.1 specification for this type of parameters exists.

Parameters
encoding:byte[]

the encoded parameters.

Exceptions
IOException:
on decoding errors
engineInitback to summary
protected final void engineInit(byte[] params, String format) throws IOException

Implements abstract java.security.AlgorithmParametersSpi.engineInit.

Doc from java.security.AlgorithmParametersSpi.engineInit.

Imports the parameters from params and decodes them according to the specified decoding format. If format is null, the primary decoding format for parameters is used. The primary decoding format is ASN.1, if an ASN.1 specification for these parameters exists.

Parameters
params:byte[]

the encoded parameters.

format:String

the name of the decoding format.

Exceptions
IOException:
on decoding errors
engineInitback to summary
protected void engineInit(AlgorithmParameterSpec paramSpec) throws InvalidParameterSpecException

Implements abstract java.security.AlgorithmParametersSpi.engineInit.

Doc from java.security.AlgorithmParametersSpi.engineInit.

Initializes this parameters object using the parameters specified in paramSpec.

Parameters
paramSpec:AlgorithmParameterSpec

the parameter specification.

Exceptions
InvalidParameterSpecException:
if the given parameter specification is inappropriate for the initialization of this parameter object.
getSBoxOIDback to summary
protected static ASN1ObjectIdentifier getSBoxOID(String name)
getSBoxOIDback to summary
protected static ASN1ObjectIdentifier getSBoxOID(byte[] sBox)
localEngineGetParameterSpecback to summary
protected AlgorithmParameterSpec localEngineGetParameterSpec(Class<T> paramSpec) throws InvalidParameterSpecException

Implements abstract org.bouncycastle.jcajce.provider.symmetric.util.BaseAlgorithmParameters.localEngineGetParameterSpec.

localGetEncodedback to summary
protected byte[] localGetEncoded() throws IOException
localInitback to summary
pack-priv abstract void localInit(byte[] params) throws IOException
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class GOST28147.CBC

extends BaseBlockCipher
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
CBC()

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher:
engineDoFinalengineDoFinalengineGetBlockSizeengineGetIVengineGetKeySizeengineGetOutputSizeengineGetParametersengineInitengineInitengineInitengineSetModeengineSetPaddingengineUpdateengineUpdateengineUpdateAADengineUpdateAAD

Constructor Detail

CBCback to summary
public CBC()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class GOST28147.CryptoProWrap

extends BaseWrapCipher
Class Inheritance

Field Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseWrapCipher:
engineParamspbeHashpbeIvSizepbeKeySizepbeTypewrapEngine

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseWrapCipher:
createParametersInstanceengineDoFinalengineDoFinalengineGetBlockSizeengineGetIVengineGetKeySizeengineGetOutputSizeengineGetParametersengineInitengineInitengineInitengineSetModeengineSetPaddingengineUnwrapengineUpdateengineUpdateengineWrap

Constructor Detail

CryptoProWrapback to summary
public CryptoProWrap()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class GOST28147.ECB

extends BaseBlockCipher
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
ECB()

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher:
engineDoFinalengineDoFinalengineGetBlockSizeengineGetIVengineGetKeySizeengineGetOutputSizeengineGetParametersengineInitengineInitengineInitengineSetModeengineSetPaddingengineUpdateengineUpdateengineUpdateAADengineUpdateAAD

Constructor Detail

ECBback to summary
public ECB()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class GOST28147.GCFB

extends BaseBlockCipher
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
GCFB()

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher:
engineDoFinalengineDoFinalengineGetBlockSizeengineGetIVengineGetKeySizeengineGetOutputSizeengineGetParametersengineInitengineInitengineInitengineSetModeengineSetPaddingengineUpdateengineUpdateengineUpdateAADengineUpdateAAD

Constructor Detail

GCFBback to summary
public GCFB()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class GOST28147.GostWrap

extends BaseWrapCipher
Class Inheritance

Field Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseWrapCipher:
engineParamspbeHashpbeIvSizepbeKeySizepbeTypewrapEngine

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseWrapCipher:
createParametersInstanceengineDoFinalengineDoFinalengineGetBlockSizeengineGetIVengineGetKeySizeengineGetOutputSizeengineGetParametersengineInitengineInitengineInitengineSetModeengineSetPaddingengineUnwrapengineUpdateengineUpdateengineWrap

Constructor Detail

GostWrapback to summary
public GostWrap()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class GOST28147.KeyGen

extends BaseKeyGenerator
Class Inheritance

Field Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseKeyGenerator:
algNamedefaultKeySizeenginekeySizeuninitialised

Constructor Summary

AccessConstructor and Description
public
public
KeyGen(int keySize)

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseKeyGenerator:
engineGenerateKeyengineInitengineInitengineInit

Constructor Detail

KeyGenback to summary
public KeyGen()
KeyGenback to summary
public KeyGen(int keySize)
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class GOST28147.Mac

extends BaseMac
Class Inheritance

GOST28147

Constructor Summary

AccessConstructor and Description
public
Mac()

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseMac:
engineDoFinalengineGetMacLengthengineInitengineResetengineUpdateengineUpdate

Constructor Detail

Macback to summary
public Mac()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class GOST28147.Mappings

extends AlgorithmProvider
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void

Field Detail

PREFIXback to summary
private static final String PREFIX

Constructor Detail

Mappingsback to summary
public Mappings()

Method Detail

configureback to summary
public void configure(ConfigurableProvider provider)

Implements abstract org.bouncycastle.jcajce.provider.util.AlgorithmProvider.configure.