ASN1Encodable, Encodablepublic class GCMParameters extends ASN1Object
GCMParameters ::= SEQUENCE {
aes-nonce OCTET STRING, -- recommended size is 12 octets
aes-ICVlen AES-GCM-ICVlen DEFAULT 12 }
| Constructor | Description |
|---|---|
GCMParameters(byte[] nonce,
int icvLen) |
| Modifier and Type | Method | 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, toASN1Objectpublic 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()
ASN1ObjecttoASN1Primitive in interface ASN1EncodabletoASN1Primitive in class ASN1Object