public class GCMParameters
extends org.bouncycastle.asn1.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() |
org.bouncycastle.asn1.ASN1Primitive |
toASN1Primitive() |
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 org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
toASN1Primitive
in interface org.bouncycastle.asn1.ASN1Encodable
toASN1Primitive
in class org.bouncycastle.asn1.ASN1Object