SetKey

nn::crypto::Aes::SetKey Member Function

Syntax

virtual void SetKey(
     const void * pKey,
     size_t keySize
);

Parameters

Name Description
in pKey Pointer to the key data.
in keySize Size in bytes of the key data pointed to by pKey. This value must match the value obtained by calling the GetKeySize function.

Return Values

None.

Description

Sets the key.

Sets the key used for encryption and/or decryption.

The function returns without doing anything if the value in keySize does not match the value returned by the GetKeySize function.

Revision History

2011/10/27
Initial version.

CONFIDENTIAL