Developer Guide and Reference for Intel® Cryptography Primitives Library
HashGetSize
Gets the size of the IppsHashState or IppsHashState_rmf context in bytes.
Syntax
IppStatus ippsHashGetSize(int *pSize);
IppStatus ippsHashGetSize_rmf(int *pSize);
IppStatus ippsHashGetSizeOptimal_rmf(int *pSize, IppsHashMethod* pMethod);
Include Files
ippcp.h
Parameters
pSize |
Pointer to the value of the IppsHashState or IppsHashState_rmf context size. |
IppsHashMethod* |
Pointer to the hash method. |
Description
The functions get the size of the IppsHashState or IppsHashState_rmf context in bytes and stores it in *pSize. ippsHashGetSize and ippsHashGetSize_rmf are universal for supported hash methods and provide a size sufficient for the largest method. ippsHashGetSizeOptimal_rmf provides the minimum size required for a particular method and can be used to reduce memory consumption.
Return Values
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. |