Package org.bouncycastle.asn1.cryptopro
Class Gost2814789EncryptedKey
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.cryptopro.Gost2814789EncryptedKey
- All Implemented Interfaces:
ASN1Encodable
,Encodable
Gost28147-89-EncryptedKey ::= SEQUENCE { encryptedKey Gost28147-89-Key, maskKey [0] IMPLICIT Gost28147-89-Key OPTIONAL, macKey Gost28147-89-MAC }
-
Constructor Summary
ConstructorsConstructorDescriptionGost2814789EncryptedKey
(byte[] encryptedKey, byte[] macKey) Gost2814789EncryptedKey
(byte[] encryptedKey, byte[] maskKey, byte[] macKey) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
static Gost2814789EncryptedKey
getInstance
(Object obj) byte[]
byte[]
Method providing a primitive representation of this object suitable for encoding.Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
Gost2814789EncryptedKey
public Gost2814789EncryptedKey(byte[] encryptedKey, byte[] macKey) -
Gost2814789EncryptedKey
public Gost2814789EncryptedKey(byte[] encryptedKey, byte[] maskKey, byte[] macKey)
-
-
Method Details
-
getInstance
-
getEncryptedKey
public byte[] getEncryptedKey() -
getMaskKey
public byte[] getMaskKey() -
getMacKey
public byte[] getMacKey() -
toASN1Primitive
Description copied from class:ASN1Object
Method providing a primitive representation of this object suitable for encoding.- Specified by:
toASN1Primitive
in interfaceASN1Encodable
- Specified by:
toASN1Primitive
in classASN1Object
- Returns:
- a primitive representation of this object.
-