public class GcmParameters extends UniqueIvParameters implements Parameters
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
pAad |
protected byte[] |
pIv |
protected long |
ulTagBits |
length, pointer| Constructor and Description |
|---|
GcmParameters(byte[] pIv,
byte[] pAad,
long ulTagBits)
Create a new GCMParameters object with the given attributes.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Create a (deep) clone of this object.
|
boolean |
equals(java.lang.Object otherObject)
Compares all member variables of this object with the other object.
|
java.lang.Object |
getPKCS11ParamsObject()
Get this parameters object as an object of the CK_GCM_PARAMS class.
|
int |
hashCode()
The overriding of this method should ensure that the objects of this class work correctly in a
hashtable.
|
void |
setValuesFromPKCS11Object(java.lang.Object object) |
java.lang.String |
toString()
Returns the string representation of this object.
|
clean, isConfiguredForIvWriteBackclose, finalizepublic GcmParameters(byte[] pIv,
byte[] pAad,
long ulTagBits)
pIv - Initialization vectorpAad - additional authentication data. This data is authenticated but not encrypted.ulTagBits - length of authentication tag (output following ciphertext) in bits. (0 - 128)
depending on the algorithm implementation within the hsm, ulTagBits may be any
one of the following five values: 128, 120, 112, 104, or 96, may be 64 or 32;public java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.Object getPKCS11ParamsObject()
getPKCS11ParamsObject in interface Parameterspublic void setValuesFromPKCS11Object(java.lang.Object object)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object otherObject)
equals in class java.lang.ObjectotherObject - The other object to compare to.public int hashCode()
hashCode in class java.lang.Object