Package org.xipki.pkcs11.wrapper.params
Class CCM_MESSAGE_PARAMS
- java.lang.Object
-
- org.xipki.pkcs11.wrapper.params.CkParams
-
- org.xipki.pkcs11.wrapper.params.CCM_MESSAGE_PARAMS
-
- All Implemented Interfaces:
CkMessageParams
public class CCM_MESSAGE_PARAMS extends CkParams implements CkMessageParams
Represents the CCM_MESSAGE_PARAMS.- Author:
- Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetMaxFieldLen()CK_CCM_MESSAGE_PARAMSgetParams()Get this parameters object as an object of the corresponding *_PARAMS class of the iaik.pkcs.pkcs11.wrapper package.voidsetValuesFromPKCS11Object(Object obj)StringtoString(String indent)
-
-
-
Constructor Detail
-
CCM_MESSAGE_PARAMS
public CCM_MESSAGE_PARAMS(int dataLen, byte[] nonce, long nonceFixedBits, long nonceGenerator, byte[] mac)Create a new CCM_MESSAGE_PARAMS object with the given attributes.- Parameters:
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
new nonce. These bits are counted from the Most significant bits (to the right).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 MessageDecrypt
-
-
Method Detail
-
getParams
public CK_CCM_MESSAGE_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.
-
setValuesFromPKCS11Object
public void setValuesFromPKCS11Object(Object obj)
- Specified by:
setValuesFromPKCS11Objectin interfaceCkMessageParams
-
getMaxFieldLen
protected int getMaxFieldLen()
- Specified by:
getMaxFieldLenin classCkParams
-
-