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

public Class Gost2814789EncryptedKey

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

Gost28147-89-EncryptedKey ::=   SEQUENCE {
      encryptedKey         Gost28147-89-Key,
      maskKey              [0] IMPLICIT Gost28147-89-Key
                                OPTIONAL,
      macKey               Gost28147-89-MAC
}

Field Summary

Modifier and TypeField and Description
private final byte[]
private final byte[]
private final byte[]

Constructor Summary

AccessConstructor and Description
private
public
Gost2814789EncryptedKey(byte[] encryptedKey, byte[] macKey)

public
Gost2814789EncryptedKey(byte[] encryptedKey, byte[] maskKey, byte[] macKey)

Method Summary

Modifier and TypeMethod and Description
public byte[]
public static Gost2814789EncryptedKey
public byte[]
public byte[]
public ASN1Primitive
toASN1Primitive()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

encryptedKeyback to summary
private final byte[] encryptedKey
macKeyback to summary
private final byte[] macKey
maskKeyback to summary
private final byte[] maskKey

Constructor Detail

Gost2814789EncryptedKeyback to summary
private Gost2814789EncryptedKey(ASN1Sequence seq)
Gost2814789EncryptedKeyback to summary
public Gost2814789EncryptedKey(byte[] encryptedKey, byte[] macKey)
Gost2814789EncryptedKeyback to summary
public Gost2814789EncryptedKey(byte[] encryptedKey, byte[] maskKey, byte[] macKey)

Method Detail

getEncryptedKeyback to summary
public byte[] getEncryptedKey()
getInstanceback to summary
public static Gost2814789EncryptedKey getInstance(Object obj)
getMacKeyback to summary
public byte[] getMacKey()
getMaskKeyback to summary
public byte[] getMaskKey()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

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

Method providing a primitive representation of this object suitable for encoding.

Returns:ASN1Primitive

a primitive representation of this object.