Initializes user-supplied memory as IppsHMACSHA512State context for future use.
IppStatus ippsHMACSHA512Init(const Ipp8u *pKey, int keyLen, IppsHMACSHA512State * pCtx);
pKey |
Pointer to the user-supplied key. |
keyLen |
Key length in bytes. |
pCtx |
Pointer to the IppsHMACSHA512State context being initialized. |
This function is declared in the ippcp.h file. The function initializes the memory pointed by pCtx as the IppsHMACSHA512State context. The function also sets up the initial chaining digest value according to the Hash algorithm specified by the function base name and computes necessary key material from the supplied key pKey.
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 one. |
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.