Class CCM_MESSAGE_PARAMS

    • 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