Developer Guide and Reference for Intel® Cryptography Primitives Library
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. entrInputBufBitsLen must be at least equal to the minimum entropy input length specified in Minimum and maximum values for the Hash DRBG to accommodate both the entropy input and the nonce during instantiation. |
pHashMethod |
Pointer to the hash method (may be NULL). |
Description
Gets the size for the IppsHashDRBG_EntropyInputCtx.
The result is stored to *pEntrInputSize.
Return Values
ippStsNoErr |
Indicates no error. All single operations executed without errors. Any other value indicates an error. |
ippStsNullPtrErr |
pEntrInputSize is a NULL pointer. |
ippStsOutOfRangeErr |
entrInputBufBitsLen < 1. |
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). |