Class CCM_MESSAGE_PARAMS

    • 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.
    • 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: CkParams
        Get this parameters object as an object of the corresponding *_PARAMS class of the iaik.pkcs.pkcs11.wrapper package.
        Specified by:
        getParams in class CkParams
        Returns:
        The object of the corresponding *_PARAMS class.
      • toString

        public java.lang.String toString​(java.lang.String indent)
        Specified by:
        toString in class CkParams