Class Gost2814789EncryptedKey

java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.cryptopro.Gost2814789EncryptedKey
All Implemented Interfaces:
ASN1Encodable, Encodable

public class Gost2814789EncryptedKey extends ASN1Object
 Gost28147-89-EncryptedKey ::=   SEQUENCE {
       encryptedKey         Gost28147-89-Key,
       maskKey              [0] IMPLICIT Gost28147-89-Key
                                 OPTIONAL,
       macKey               Gost28147-89-MAC
 }
 
  • Constructor Details

    • Gost2814789EncryptedKey

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

      public Gost2814789EncryptedKey(byte[] encryptedKey, byte[] maskKey, byte[] macKey)
  • Method Details

    • getInstance

      public static Gost2814789EncryptedKey getInstance(Object obj)
    • getEncryptedKey

      public byte[] getEncryptedKey()
    • getMaskKey

      public byte[] getMaskKey()
    • getMacKey

      public byte[] getMacKey()
    • toASN1Primitive

      public ASN1Primitive toASN1Primitive()
      Description copied from class: ASN1Object
      Method providing a primitive representation of this object suitable for encoding.
      Specified by:
      toASN1Primitive in interface ASN1Encodable
      Specified by:
      toASN1Primitive in class ASN1Object
      Returns:
      a primitive representation of this object.