| QuickCrypt Library | API |
|
SL_BLOWFISH_Init
void SL_CRYPTCALL SL_BLOWFISH_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 in the range 1 through 72 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_BLOWFISH_Init allocate at least SLC_BLOWFISH_CONTEXTSIZE bytes for the context.
Example
See the example for SL_BLOWFISH_ProcessBlock.
Blowfish API Overview | Blowfish API Functions | Useful Links
See Also SL_BLOWFISH_ProcessBlock
| Send Feedback to SlavaSoft Inc. | Tell a friend about QuickCrypt Library |