public class GCM_MESSAGE_PARAMS extends CkParams implements CkMessageParams
| Constructor and Description |
|---|
GCM_MESSAGE_PARAMS(byte[] iv,
long ivFixedBits,
long ivGenerator,
byte[] tag)
Create a new GCM_MESSAGE_PARAMS object with the given attributes.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
getMaxFieldLen() |
CK_GCM_MESSAGE_PARAMS |
getParams()
Get this parameters object as an object of the corresponding *_PARAMS
class of the iaik.pkcs.pkcs11.wrapper package.
|
void |
setValuesFromPKCS11Object(Object obj) |
String |
toString(String indent) |
codeToName, ptr2str, requireNonNull, setModule, toString, val2Strpublic GCM_MESSAGE_PARAMS(byte[] iv,
long ivFixedBits,
long ivGenerator,
byte[] tag)
iv - Initialization vectorivFixedBits - number of bits of the original IV to preserve when generating an 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.public CK_GCM_MESSAGE_PARAMS getParams()
CkParamspublic void setValuesFromPKCS11Object(Object obj)
setValuesFromPKCS11Object in interface CkMessageParamsprotected int getMaxFieldLen()
getMaxFieldLen in class CkParamsCopyright © 2023. All rights reserved.