Package org.xipki.pkcs11.wrapper.params
Class CCM_PARAMS
- java.lang.Object
-
- org.xipki.pkcs11.wrapper.params.CkParams
-
- org.xipki.pkcs11.wrapper.params.CCM_PARAMS
-
public class CCM_PARAMS extends CkParams
Represents the CK_CCM_PARAMS.- Author:
- Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor Description CCM_PARAMS(int dataLen, byte[] nonce, byte[] aad, int macLen)Create a new CCM_PARAMS object with the given attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetMaxFieldLen()CK_CCM_PARAMSgetParams()Get this parameters object as an object of the corresponding *_PARAMS class of the iaik.pkcs.pkcs11.wrapper package.voidsetDataLen(int dataLen)StringtoString(String indent)
-
-
-
Constructor Detail
-
CCM_PARAMS
public CCM_PARAMS(int dataLen, byte[] nonce, byte[] aad, int macLen)Create a new CCM_PARAMS object with the given attributes.- Parameters:
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)
-
-
Method Detail
-
getParams
public CK_CCM_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.
-
setDataLen
public void setDataLen(int dataLen)
-
getMaxFieldLen
protected int getMaxFieldLen()
- Specified by:
getMaxFieldLenin classCkParams
-
-