mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
entropy_poll: Updated documentation for entropy_poll loop.
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
This commit is contained in:
@ -61,8 +61,8 @@ int mbedtls_platform_entropy_poll(void *data, unsigned char *output, size_t len,
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* BCryptGenRandom takes ULONG for size, which is smaller than size_t on
|
* BCryptGenRandom takes ULONG for size, which is smaller than size_t on
|
||||||
* 64-bit Windows platforms. Ensure len's value can be safely converted into
|
* 64-bit Windows platforms. Extract entropy in chunks of len (dependent
|
||||||
* a ULONG.
|
* on ULONG_MAX) size.
|
||||||
*/
|
*/
|
||||||
while (len != 0) {
|
while (len != 0) {
|
||||||
unsigned long ulong_bytes =
|
unsigned long ulong_bytes =
|
||||||
|
Reference in New Issue
Block a user