Initializes user-supplied memory as IppsPRNGState context for future use.
IppStatus ippsPRNGInit(int seedBits, IppsPRNGState* pCtx);
seedBits |
Size in bits for the seed value. |
pCtx |
Pointer to the IppsPRNGState context being intialized. |
This function is declared in the ippcp.h file. The function initializes the memory pointed by pCtx as the IppsPRNGState context. In addition, the function sets up the default internal random generator parameters (seed, entropy augment, modulus, and initial hash value H0 of the SHA-1 algorithm). PRNG default parameters are as follows:
ippStsNoErr |
Indicates no error. Any other value indicates an error or warning. |
ippStsNullPtrErr |
Indicates an error condition if any of the specified pointers is NULL. |
ippStsLengthErr |
Indicates an error condition if seedBits is less than 1 or greater than 512. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.