zx_cprng_add_entropy
Summary
Add entropy to the kernel CPRNG.
Declaration
#include <zircon/syscalls.h>
zx_status_t zx_cprng_add_entropy(const void* buffer, size_t buffer_size);
Description
zx_cprng_add_entropy()
mixes the given entropy into the kernel CPRNG.
a privileged operation. It will accept at most ZX_CPRNG_ADD_ENTROPY_MAX_LEN
bytes of entropy at a time.
Rights
None.
Return value
zx_cprng_add_entropy()
returns ZX_OK
on success.
Errors
ZX_ERR_INVALID_ARGS
buffer_size is too large, or buffer is not a valid
userspace pointer.
BUGS
This syscall should be very privileged.
See also
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-12-13 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-12-13 UTC."],[],[]]