Computes the authentication tag of an entire message.
IppStatus ippsXCBCRijndael128MessageTag(const Ipp8u* pMsg, Ipp32u msgLen, const Ipp8u* pKey, IppsRijndaelKeyLength keyLen, Ipp8u* pDstTag, Ipp32u tagLen);
pMsg |
Pointer to the input message. |
msgLen |
Length of the message (in bytes). |
pKey |
Pointer to the authentication key. |
keyLen |
Length of the key. |
pDstTag |
Pointer to the authentication tag. |
tagLen |
Length of the tag (in bytes). |
This function is declared in the ippcp.h file. The function performs all steps of the authentication tag calculation, that is, the initialize, update, and final steps, in a single call. You can use this function when your application can access the entire message.
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 the length parameters do not meet any of the following conditions: keyLen = IppsRijndaelKey128 or keyLen = IppsRijndaelKey192 or keyLen = IppsRijndaelKey256 1 ≤ tagLen ≤ 16. |
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.