Package org.xipki.pkcs11.wrapper.params
Class GCM_PARAMS
- java.lang.Object
-
- org.xipki.pkcs11.wrapper.params.CkParams
-
- org.xipki.pkcs11.wrapper.params.GCM_PARAMS
-
public class GCM_PARAMS extends CkParams
Represents the CK_GCM_PARAMS.- Author:
- Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor Description GCM_PARAMS(byte[] iv, byte[] aad, int tagBits)Create a new GCM_PARAMS object with the given attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetMaxFieldLen()CK_GCM_PARAMSgetParams()Get this parameters object as an object of the corresponding *_PARAMS class of the iaik.pkcs.pkcs11.wrapper package.StringtoString(String indent)-
Methods inherited from class org.xipki.pkcs11.wrapper.params.CkParams
ptr2str, requireNonNull, toString, val2Str
-
-
-
-
Constructor Detail
-
GCM_PARAMS
public GCM_PARAMS(byte[] iv, byte[] aad, int tagBits)Create a new GCM_PARAMS object with the given attributes.- Parameters:
iv- Initialization vectoraad- additional authentication data. This data is authenticated but not encrypted.tagBits- 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;
-
-
Method Detail
-
getParams
public CK_GCM_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.
-
getMaxFieldLen
protected int getMaxFieldLen()
- Specified by:
getMaxFieldLenin classCkParams
-
-