Initializes user-supplied memory as IppsDAATwofishState context for future use.
IppStatus ippsDAATwofishInit(const Ipp8u* pKey, int keylen, IppsDAATwofishState* pCtx);
pKey |
Pointer to the DAATwofish key. |
keylen |
Key byte stream length in bytes. |
pCtx |
Pointer to the IppsDAATwofishState context being initialized. |
This function is declared in the ippcp.h file. The function initializes the memory pointed by pCtx as the IppsDAATwofishState context. In addition, the function uses the key to provide all necessary key material for both encryption and decryption operations.
ippStsNoErr |
Indicates no error. Any other value indicates an error or warning. |
ippStsNullPtrErr |
Indicates an error condition if any of the specified pointers is NULL. |
ippStsLengthErr |
Indicates an error condition if keylen is less than 1 or greater than 32. |
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.