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 |
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.
Note
If the hash method is not specified (NULL pointer is passed), SHA-256 will be set by default.
Return Values#
ippStsNoErr |
Indicates no error. All single operations executed without errors. Any other value indicates an error. |
ippStsNullPtrErr |
|
ippStsNotSupportedModeErr |
The hash algorithm is not supported. |
ippStsErr |
Functions invoked inside |