ippsHashDRBG_GetSize

ippsHashDRBG_GetSize#

Gets the size (in bytes) for the Hash DRBG state.

Syntax#

IppStatus ippsHashDRBG_GetSize(int* pSize,
                               const IppsHashMethod* pHashMethod);

Include Files#

ippcp.h

Parameters#

pSize

Pointer to the state size.

pHashMethod

Pointer to the hash method (may be NULL).

Note

If the hash method is not specified (NULL pointer is passed), SHA-256 is used by default.

Description#

Gets the size for the IppsHashDRBGState.

The result is stored to *pSize.

Return Values#

ippStsNoErr

Indicates no error. All single operations executed without errors. Any other value indicates an error.

ippStsNullPtrErr

pSize is a NULL pointer.

ippStsNotSupportedModeErr

The hash algorithm is not supported.

ippStsErr

Functions invoked inside ippsHashDRBG_GetSize failed with this error status code.