Initialize

nn::crypto::CcmDecryptor::Initialize Member Function

Syntax

void Initialize(
     const BlockCipher & c,
     const void * pIv,
     size_t ivSize,
     size_t adataSize,
     size_t cdataSize,
     size_t macSize
);

Parameters

Name Description
in c Instance of the block cipher implementation used in decryption.
in pIv Pointer to the buffer storing the IV.
in ivSize IV size in bytes.
in adataSize Adata size in bytes.
in cdataSize Cdata size in bytes.
in macSize MAC size in bytes.

Return Values

None.

Description

Initializes decryption in CCM mode.

For c, specify the same key used in encryption for the block cipher of the same algorithm used in encryption.

Specify a pointer to an IV object in pIv, and its size in ivSize. You must specify the same IV, adataSize, and macSize values as those used for encryption.

You must specify the same cdataSize value as the pdataSize value used for encryption.

Revision History

2011/10/27
Initial version.

CONFIDENTIAL