QuickCrypt Library C++ Interface

CDESX::Init

void Init( SL_CIPHER_DIR dir, const unsigned char* pKey );

void Init( SL_CIPHER_DIR dir, const unsigned char* pKey, unsigned int );
 

Parameters

dir

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

 pKey

    [in] Pointer to the secret key.

 

The third parameter of type unsigned int was added for consistency with other encryption algorithms and it is ignored.

Remarks

Both member functions work in the same way.

They initialize the CDESX object with the secret key pointed by pKey. Note that the first CDESX::DEFAULTKEYSIZE bytes of the memory buffer pointed by pKey are used as the secret key.

The CDESX object is initialized for encryption if dir is SLC_ENCRYPT, or it is initialized for decryption if dir is SLC_DECRYPT.

Example

See the example for CDESX::ProcessBlock.

 

CDESX Overview   |   Class Members   |   Useful Links

 

See Also    CDESX::ProcessBlock


 

 

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