blob: 2ce9826a4377c25db4cedae07ff6a2296ba8125f [file] [log] [blame]
// 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() -> (struct {
status status;
buffer vector_void;
});
/// Draw from the kernel's CPRNG.
@vdsocall
cprng_draw() -> (struct {
buffer vector_void;
});
/// Add entropy to the kernel CPRNG.
cprng_add_entropy(struct {
buffer vector_void;
}) -> (struct {
status status;
});
};