nn::crypto::Encryptor::Initialize Member Function
virtual void Initialize(
const BlockCipher & c,
const void * pIv,
size_t ivSize
) = 0;
| 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. |
Initializes encryption.
For c, specify an instance of a class derived from the BlockCipher class that implements the block cipher used in encryption. You must first call the c.SetKey function to set the key used in encryption.
The IV to set and its size depends on the cipher mode used. See the reference for the Initialize function of the appropriate derived class.
CONFIDENTIAL