public class CCM_MESSAGE_PARAMS extends CkParams implements CkMessageParams
| Constructor and Description |
|---|
CCM_MESSAGE_PARAMS(int dataLen,
byte[] nonce,
long nonceFixedBits,
long nonceGenerator,
byte[] mac)
Create a new CCM_MESSAGE_PARAMS object with the given attributes.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
getMaxFieldLen() |
CK_CCM_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 CCM_MESSAGE_PARAMS(int dataLen,
byte[] nonce,
long nonceFixedBits,
long nonceGenerator,
byte[] mac)
dataLen - length of the data where 0 ≤ ulDataLen < 2^(8L).nonce - the nonce. length: 7 ≤ ulNonceLen ≤ 13.nonceFixedBits - number of bits of the original nonce to preserve when generating a nonceGenerator - Function used to generate a new nonce. Each nonce must be
unique for a given session.mac - CCM MAC returned on MessageEncrypt, provided on MessageDecryptpublic CK_CCM_MESSAGE_PARAMS getParams()
CkParamspublic void setValuesFromPKCS11Object(Object obj)
setValuesFromPKCS11Object in interface CkMessageParamsprotected int getMaxFieldLen()
getMaxFieldLen in class CkParamsCopyright © 2023. All rights reserved.