nn::crypto::DecryptAes128Ctr Function
void DecryptAes128Ctr(
void * pDst,
const void * pSrc,
size_t srcSize,
const void * pKey
);
| Name | Description | |
|---|---|---|
| out | pDst | Pointer to the buffer storing the decryption results. This buffer must be at least as big as srcSize - ENCRYPT_HEADER_SIZE. |
| in | pSrc | Pointer to the buffer storing the ciphertext. |
| in | srcSize | Ciphertext size in bytes. |
| in | pKey | Pointer to the buffer storing the key. The key is 16 bytes in length. |
Decrypts.
Decrypts data encrypted using the EncryptAes128Ctr function.
Data decrypted by this function is reduced in size by ENCRYPT_HEADER_SIZE (or 16 bytes). Consequently, the buffer pointed to by pDst must be big enough to hold srcSize - ENCRYPT_HEADER_SIZE bytes of data.
CONFIDENTIAL