Visible to Intel only — GUID: GUID-4B65464F-C1AD-4349-AF4F-8C5776C88B09
Visible to Intel only — GUID: GUID-4B65464F-C1AD-4349-AF4F-8C5776C88B09
SHA256Pack, SHA256Unpack
Packs/unpacks the IppsSHA256State context into/from a user-defined buffer.
IppStatus ippsSHA256Pack (const IppsSHA256State* pCtx, Ipp8u* pBuffer);
IppStatus ippsSHA256Unpack (const Ipp8u* pBuffer, IppsSHA256State* pCtx);
ippcp.h
pCtx |
Pointer to the IppsSHA256State context. |
pBuffer |
Pointer to the user-defined buffer. |
The SHA256Pack function transforms the *pCtx context to a position-independent form and stores it in the *pBuffer buffer. The SHA256Unpack function performs the inverse operation, that is, transforms the contents of the *pBuffer buffer into a normal IppsSHA256State context. The SHA256Pack and SHA256Unpack functions enable replacing the position-dependent IppsSHA256State context in the memory.
Call the SHA256GetSize function prior to SHA256Pack/SHA256Unpack to determine the size of the buffer.
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. |
Did you find the information on this page useful?
Feedback Message
Characters remaining: