Initializes user-supplied memory as the IppsRijndael128CCMState context for future use.
IppStatus ippsRijndael128CCMInit(const Ipp8u* pKey, IppsRijndaelKeyLength keyLen, IppsRijndael128GCMState* pState);
pKey Pointer to the secret key.
keyLength Length of the secret key.
pState Pointer to the IppsRijndael128CCMState context.
This function is declared in the ippcp.h file. The function initializes the memory pointed by pState as the IppsRijndael128CCMState context. In addition, the function uses the initialization variable and additional authenticated data to provide all necessary key material for both encryption and decryption.
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. |
ippStsContextMatchErr |
Indicates an error condition if the context parameter does not match the operation. |
ippStsLengthErr |
Indicates an error condition an error condition if keyLen is not set to IppsRijndaelKey128, IppsRijndaelKey192 or IppsRijndaelKey256. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.