Top Description Fields Constructors Methods
org.bouncycastle.asn1.cryptopro

public Class GOST28147Parameters

extends ASN1Object
Class Inheritance
Imports
java.util.Enumeration, org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Object, .ASN1ObjectIdentifier, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .DEROctetString, .DERSequence, org.bouncycastle.util.Arrays

ASN.1 algorithm identifier parameters for GOST-28147

Field Summary

Modifier and TypeField and Description
private ASN1OctetString
private ASN1ObjectIdentifier

Constructor Summary

AccessConstructor and Description
public
private

Method Summary

Modifier and TypeMethod and Description
public ASN1ObjectIdentifier

Returns:

the sBox OID.
getEncryptionParamSet
()

Return the OID representing the sBox to use.

public static GOST28147Parameters
getInstance(ASN1TaggedObject obj, boolean explicit)

public static GOST28147Parameters
public byte[]

Returns:

the IV.
getIV
()

Return the initialisation vector to use.

public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Gost28147-89-Parameters ::=
              SEQUENCE {
                      iv                   Gost28147-89-IV,
                      encryptionParamSet   OBJECT IDENTIFIER
               }

  Gost28147-89-IV ::= OCTET STRING (SIZE (8))
Inherited from org.bouncycastle.asn1.ASN1Object:
equalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

ivback to summary
private ASN1OctetString iv
paramSetback to summary
private ASN1ObjectIdentifier paramSet

Constructor Detail

GOST28147Parametersback to summary
public GOST28147Parameters(byte[] iv, ASN1ObjectIdentifier paramSet)
GOST28147Parametersback to summary
private GOST28147Parameters(ASN1Sequence seq)

Method Detail

getEncryptionParamSetback to summary
public ASN1ObjectIdentifier getEncryptionParamSet()

Return the OID representing the sBox to use.

Returns:ASN1ObjectIdentifier

the sBox OID.

getInstanceback to summary
public static GOST28147Parameters getInstance(ASN1TaggedObject obj, boolean explicit)
getInstanceback to summary
public static GOST28147Parameters getInstance(Object obj)
getIVback to summary
public byte[] getIV()

Return the initialisation vector to use.

Returns:byte[]

the IV.

toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Gost28147-89-Parameters ::=
              SEQUENCE {
                      iv                   Gost28147-89-IV,
                      encryptionParamSet   OBJECT IDENTIFIER
               }

  Gost28147-89-IV ::= OCTET STRING (SIZE (8))
Returns:ASN1Primitive

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

a primitive representation of this object.