Package org.xipki.pkcs11.wrapper.params
Class GCM_MESSAGE_PARAMS
- java.lang.Object
-
- org.xipki.pkcs11.wrapper.params.CkParams
-
- org.xipki.pkcs11.wrapper.params.GCM_MESSAGE_PARAMS
-
- All Implemented Interfaces:
CkMessageParams
public class GCM_MESSAGE_PARAMS extends CkParams implements CkMessageParams
Represents the CK_GCM_MESSAGE_PARAMS.- Author:
- Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor Description GCM_MESSAGE_PARAMS(byte[] iv, long ivFixedBits, long ivGenerator, byte[] tag)Create a new GCM_MESSAGE_PARAMS object with the given attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetMaxFieldLen()CK_GCM_MESSAGE_PARAMSgetParams()Get this parameters object as an object of the corresponding *_PARAMS class of the iaik.pkcs.pkcs11.wrapper package.voidsetValuesFromPKCS11Object(Object obj)StringtoString(String indent)-
Methods inherited from class org.xipki.pkcs11.wrapper.params.CkParams
ptr2str, requireNonNull, toString, val2Str
-
-
-
-
Constructor Detail
-
GCM_MESSAGE_PARAMS
public GCM_MESSAGE_PARAMS(byte[] iv, long ivFixedBits, long ivGenerator, byte[] tag)Create a new GCM_MESSAGE_PARAMS object with the given attributes.- Parameters:
iv- Initialization vectorivFixedBits- number of bits of the original IV to preserve when generating an
new IV. These bits are counted from the Most significant bits (to the right).ivGenerator- Function used to generate a new IV. Each IV must be unique for a given session.tag- location of the authentication tag which is returned on MessageEncrypt, and provided on MessageDecrypt.
-
-
Method Detail
-
getParams
public CK_GCM_MESSAGE_PARAMS getParams()
Description copied from class:CkParamsGet this parameters object as an object of the corresponding *_PARAMS class of the iaik.pkcs.pkcs11.wrapper package.
-
setValuesFromPKCS11Object
public void setValuesFromPKCS11Object(Object obj)
- Specified by:
setValuesFromPKCS11Objectin interfaceCkMessageParams
-
getMaxFieldLen
protected int getMaxFieldLen()
- Specified by:
getMaxFieldLenin classCkParams
-
-