| QuickCrypt Library | API |
|
SL_OFB_Init
int SL_CRYPTCALL SL_OFB_Init( void* pContext, const void* pIV, unsigned int fs );
Return Value
1 if initializations was successful; otherwise 0.
Parameters
pContext
[out] Pointer to the memory buffer that will be used as a context.
pIV
[in] Pointer to the initialization vector.
fs
[in] Feedback size in bytes. Set fs to 0 if you want to use the maximum feedback size. This size is the mostly used feedback size.
Remarks
Initializes the context pointed by pContext with the initialization vector pointed by pIV.
Before calling the SL_OFB_Init function, allocate at least CONTEXTSIZE bytes for the context. For example, to perform Blowfish encryption/decryption allocate at least SLC_BLOWFISH_CONTEXTSIZE bytes for the context.
Before calling SL_OFB_Init call the Init function of the encryption algorithm you need to use, passing to it the secret key and the cipher direction (SLC_ENCRYPT only). For example, to perform DES encryption/decryption in OFB mode call SL_DES_Init function before calling SL_OFB_Init.
Example
|
|
OFB Mode API Overview | OFB Mode API Functions | Useful Links
See Also SL_OFB_Process
| Send Feedback to SlavaSoft Inc. | Tell a friend about QuickCrypt Library |