public class GcmParameters extends java.lang.Object implements Parameters
Modifier and Type | Field and Description |
---|---|
protected byte[] |
pAad |
protected byte[] |
pIv |
protected long |
ulTagBits |
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.
|
java.lang.String |
toString()
Returns the string representation of this object.
|
public 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.Object
public java.lang.Object getPKCS11ParamsObject()
getPKCS11ParamsObject
in interface Parameters
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object otherObject)
equals
in class java.lang.Object
otherObject
- The other object to compare to.public int hashCode()
hashCode
in class java.lang.Object
IAIK JavaSecurity Website http://jce.iaik.tugraz.at/
IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2023 IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved. version 1.6.9