| // Copyright 2019 The Fuchsia Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| library zx; | |
| [Transport = "Syscall"] | |
| protocol cprng { | |
| [internal] | |
| cprng_draw_once() -> (status status, vector_void buffer); | |
| /// Draw from the kernel's CPRNG. | |
| [vdsocall] | |
| cprng_draw() -> (vector_void buffer); | |
| /// Add entropy to the kernel CPRNG. | |
| cprng_add_entropy(vector_void buffer) -> (status status); | |
| }; |