![]() The default random number provider implements an algorithm for generating random numbers that complies with the NIST SP800-90 standard, specifically the CTR_DRBG portion of that standard. The handle in the hAlgorithm parameter is not valid. Possible return codes include, but are not limited to, the following. Returns a status code that indicates the success or failure of the function. Windows Vista: This flag is not supported without SP2. The hAlgorithm parameter must be NULL.īCRYPT_USE_SYSTEM_PREFERRED_RNG is only supported at PASSIVE_LEVEL IRQL. Use the system-preferred random number generator algorithm. Windows 8 and later: This flag is ignored in Windows 8 and later.īCRYPT_USE_SYSTEM_PREFERRED_RNG 0x00000002 If this flag is not specified, this function will use a random number for the entropy. This function will use the number in the pbBuffer buffer as additional entropy for the random number. ValueīCRYPT_RNG_USE_ENTROPY_IN_BUFFER 0x00000001 ![]() This parameter can be zero or the following value. The size, in bytes, of the pbBuffer buffer.Ī set of flags that modify the behavior of this function. ![]() ![]() The size of this buffer is specified by the cbBuffer parameter. The address of a buffer that receives the random number. The algorithm that was specified when the provider was created must support the random number generator interface. The handle of an algorithm provider created by using the BCryptOpenAlgorithmProvider function. The BCryptGenRandom function generates a random number. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |