Encrypt

nn::crypto::BlockCipher::Encrypt Member Function

Syntax

virtual void Encrypt(
     void * pDst,
     const void * pSrc
) const = 0;

Parameters

Name Description
out pDst Pointer to the buffer that receives encrypted data. This buffer must be at least as big as the size obtained by calling the GetBlockSize function.
in pSrc Pointer to the buffer storing data to encrypt. This buffer must be the size obtained by calling the GetBlockSize function.

Return Values

None.

Description

Encrypts.

Encryption takes a block-sized portion of plaintext and converts it to ciphertext. This loads a block-sized amount of data from pSrc, encrypts it, and writes the result to pDst.

Revision History

2011/10/27
Initial version.

CONFIDENTIAL