ippsHashDRBG_EntropyInputCtxGetSize#
Gets the size (in bytes) for the Entropy input context.
Syntax#
IppStatus ippsHashDRBG_EntropyInputCtxGetSize(int* pEntrInputSize,
const int entrInputBufBitsLen,
const IppsHashMethod* pHashMethod);
Include Files#
ippcp.h
Parameters#
pEntrInputSize |
Pointer to the Entropy input context size. |
entrInputBufBitsLen |
The length of the buffer containing the entropy input and the nonce.
|
pHashMethod |
Pointer to the hash method (may be NULL). |
Description#
Gets the size for the IppsHashDRBG_EntropyInputCtx.
The result is stored to *pEntrInputSize.
Note
If the hash method is not specified (NULL pointer is passed), SHA-256 is used by default.
Return Values#
ippStsNoErr |
Indicates no error. All single operations executed without errors. Any other value indicates an error. |
ippStsNullPtrErr |
|
ippStsOutOfRangeErr |
|
ippStsNotSupportedModeErr |
The hash algorithm is not supported. |
ippStsLengthErr |
The length of the Entropy input buffer is less than the minimum entropy input length (see Minimum and maximum values for the Hash DRBG). |