Initialize user-supplied memory as IppsRijndael128Spec context for future use.
IppStatus ippsRijndael128Init(const Ipp8u *pKey, IppsRijndaelKeyLength keylen, IppsRijndael128Spec* pCtx);
IppStatus ippsSafeRijndael128Init(const Ipp8u *pKey, IppsRijndaelKeyLength keylen, IppsRijndael128Spec* pCtx);
pKey |
Pointer to the Rijndael128 key. |
keylen |
Key byte stream length in bytes defined by the IppsRijndaelKeyLength enumerator. |
pCtx |
Pointer to the IppsRijndael128Spec context being initialized. |
These functions are declared in the ippcp.h file. Each function initializes the memory pointed by pCtx as IppsRijndael128Spec. In addition, each function uses the key to provide all necessary key material for both encryption and decryption operations. Depending upon whether you wish to employ fast or safe implementation of the AES algorithm, call Rijndael128Init or SafeRijndael128Init, respectively.
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 |
Returns an error condition if keyLen is not set to IppsRijndaelKey128, IppsRijndaelKey192 or IppsRijndaelKey256. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.