QuickCrypt Library API

SL_RIJNDAEL_Init

void SL_CRYPTCALL SL_RIJNDAEL_Init( void* pContext, int nDir, const void* pKey, unsigned int nKeyLen );

Parameters

pContext

    [out] Pointer to the memory buffer that will be used as a context.

nDir

    [in] Cipher direction. It can be SLC_ENCRYPT or SLC_DECRYPT.

 pKey

    [in] Pointer to the secret key.

 nKeyLen

    [in] Length in bytes of the key. It can be 16, 24 or 32 bytes.

Remarks

Initializes the context pointed by pContext with the secret key pointed by pKey. The context is initialized for encryption if nDir is SLC_ENCRYPT, or it is initialized for decryption if nDir is SLC_DECRYPT.

Before calling SL_RIJNDAEL_Init allocate at least SLC_RIJNDAEL_CONTEXTSIZE bytes for the context.

Example

See the example for SL_RIJNDAEL_ProcessBlock.

Note

Instead of SL_RIJNDAEL_Init function name you can use SL_AES_Init, and instead of SLC_RIJNDAEL_CONTEXTSIZE you can use SLC_AES_CONTEXTSIZE. These aliases are defined in QuickCrypt.h with #define directives.

 

Rijndael (AES) API Overview   |   Rijndael (AES) API Functions   |   Useful Links

 

See Also    SL_RIJNDAEL_ProcessBlock


 

 

Send Feedback to SlavaSoft Inc. Tell a friend about QuickCrypt Library