Developer Guide and Reference for Intel® Cryptography Primitives Library
A newer version of this document is available. Customers should click here to go to the newest version.
ippsHashDRBG_Init
Initializes the Hash DRBG state.
Syntax
IppStatus ippsHashDRBG_Init(const IppsHashMethod* pHashMethod,
IppsHashDRBGState* pDrbgCtx);
Include Files
ippcp.h
Parameters
pHashMethod |
Pointer to the hash method (may be NULL). |
pDrbgCtx |
Pointer to the IppsHashDRBGState context. The size is equal to the value returned by the ippsHashDRBG_GetSize. |
Description
The function initializes the IppsHashDRBGState. Additionally, sets security strength according to the user-selected hashing method as shown in the Table 1: Maximum security strengths for hash functions in bits.
Return Values
ippStsNoErr |
Indicates no error. All single operations executed without errors. Any other value indicates an error. |
ippStsNullPtrErr |
pDrbgCtx is a NULL pointer. |
ippStsNotSupportedModeErr |
The hash algorithm is not supported. |
ippStsErr |
Functions invoked inside ippsHashDRBG_Init failed with this error status code. |