public class CCM_PARAMS extends CkParams
| Constructor and Description |
|---|
CCM_PARAMS(int dataLen,
byte[] nonce,
byte[] aad,
int macLen)
Create a new CCM_PARAMS object with the given attributes.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
getMaxFieldLen() |
CK_CCM_PARAMS |
getParams()
Get this parameters object as an object of the corresponding *_PARAMS
class of the iaik.pkcs.pkcs11.wrapper package.
|
void |
setDataLen(int dataLen) |
String |
toString(String indent) |
codeToName, ptr2str, requireNonNull, setModule, toString, val2Strpublic CCM_PARAMS(int dataLen,
byte[] nonce,
byte[] aad,
int macLen)
dataLen - length of the data where 0 ≤ ulDataLen < 2^8L. This length should not include the length
of the MAC that is appended to the cipher text.
(where L is the size in bytes of the data length's length(2 < L < 8)nonce - the nonceaad - additional authentication data. This data is authenticated but not encrypted.macLen - length of the MAC (output following cipher text) in bytes. Valid values are
(4, 6, 8, 10, 12, 14 and 16)public CK_CCM_PARAMS getParams()
CkParamspublic void setDataLen(int dataLen)
protected int getMaxFieldLen()
getMaxFieldLen in class CkParamsCopyright © 2023. All rights reserved.