public class GCMParameters extends ASN1Object
GCMParameters ::= SEQUENCE { aes-nonce OCTET STRING, -- recommended size is 12 octets aes-ICVlen AES-GCM-ICVlen DEFAULT 12 }
Constructor and Description |
---|
GCMParameters(byte[] nonce,
int icvLen) |
Modifier and Type | Method and Description |
---|---|
int |
getIcvLen() |
static GCMParameters |
getInstance(java.lang.Object obj)
Return an GCMParameters object from the given object.
|
byte[] |
getNonce() |
ASN1Primitive |
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding.
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
public static GCMParameters getInstance(java.lang.Object obj)
Accepted inputs:
GCMParameters
object
ASN1Sequence
input formats with GCMParameters structure inside
obj
- the object we want converted.java.lang.IllegalArgumentException
- if the object cannot be converted.public byte[] getNonce()
public int getIcvLen()
public ASN1Primitive toASN1Primitive()
ASN1Object
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object