Initialize

nn::crypto::Encryptor::Initialize Member Function

Syntax

virtual void Initialize(
     const BlockCipher & c,
     const void * pIv,
     size_t ivSize
) = 0;

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.

Return Values

None.

Description

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.

Revision History

2011/10/27
Initial version.

CONFIDENTIAL