Visible to Intel only — GUID: GUID-D075ECA0-6F02-4CC5-AEA7-BE7023D6FF1F
Visible to Intel only — GUID: GUID-D075ECA0-6F02-4CC5-AEA7-BE7023D6FF1F
SMS4SetKey
Resets the SMS4 secret key in the initialized IppsSMS4Spec context.
IppStatus ippsSMS4SetKey(const Ipp8u* pKey, int keyLen, IppsSMS4Spec* pCtx);
ippcp.h
pKey |
Pointer to the SMS4 key. |
keyLen |
Length of the secret key. |
pCtx |
Pointer to the initialized IppsSMS4Spec context. |
This function resets the SMS4 secret key in the initialized IppsSMS4Spec context with the user-supplied secret key.
If the pKey pointer is NULL, the function resets the context with the zero key, which can help you to clean up the actual secret before releasing the context.
ippStsNoErr |
Indicates no error. Any other value indicates an error or warning. |
ippStsNullPtrErr |
Indicates an error condition if the pCtx pointer is NULL. |
ippStsLengthErr |
Returns an error condition if keyLen is not equal to 16. |
ippStsContextMatchErr |
Indicates an error condition if the context parameter does not match the operation. |
See Also
Did you find the information on this page useful?
Feedback Message
Characters remaining: