Class GCMParameters

  • All Implemented Interfaces:
    ASN1Encodable, Encodable

    public class GCMParameters
    extends ASN1Object
    RFC 5084: GCMParameters object.

     GCMParameters ::= SEQUENCE {
       aes-nonce        OCTET STRING, -- recommended size is 12 octets
       aes-ICVlen       AES-GCM-ICVlen DEFAULT 12 }
     
    • Constructor Detail

      • GCMParameters

        public GCMParameters​(byte[] nonce,
                             int icvLen)
    • Method Detail

      • getInstance

        public static GCMParameters getInstance​(java.lang.Object obj)
        Return an GCMParameters object from the given object.

        Accepted inputs:

        Parameters:
        obj - the object we want converted.
        Throws:
        java.lang.IllegalArgumentException - if the object cannot be converted.
      • getNonce

        public byte[] getNonce()
      • getIcvLen

        public int getIcvLen()