nn::crypto::CcmDecryptor::Initialize Member Function
void Initialize(
const BlockCipher & c,
const void * pIv,
size_t ivSize,
size_t adataSize,
size_t cdataSize,
size_t macSize
);
| 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. |
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.
CONFIDENTIAL