Package org.bouncycastle.asn1.cryptopro
Class GOST28147Parameters
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.cryptopro.GOST28147Parameters
- All Implemented Interfaces:
ASN1Encodable
,Encodable
ASN.1 algorithm identifier parameters for GOST-28147
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the OID representing the sBox to use.static GOST28147Parameters
getInstance
(Object obj) static GOST28147Parameters
getInstance
(ASN1TaggedObject obj, boolean explicit) byte[]
getIV()
Return the initialisation vector to use.Gost28147-89-Parameters ::= SEQUENCE { iv Gost28147-89-IV, encryptionParamSet OBJECT IDENTIFIER } Gost28147-89-IV ::= OCTET STRING (SIZE (8))Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
GOST28147Parameters
-
-
Method Details
-
getInstance
-
getInstance
-
toASN1Primitive
Gost28147-89-Parameters ::= SEQUENCE { iv Gost28147-89-IV, encryptionParamSet OBJECT IDENTIFIER } Gost28147-89-IV ::= OCTET STRING (SIZE (8))
- Specified by:
toASN1Primitive
in interfaceASN1Encodable
- Specified by:
toASN1Primitive
in classASN1Object
- Returns:
- a primitive representation of this object.
-
getEncryptionParamSet
Return the OID representing the sBox to use.- Returns:
- the sBox OID.
-
getIV
public byte[] getIV()Return the initialisation vector to use.- Returns:
- the IV.
-