blob: 2b6a3a91a118ac04f3a837beefb89e21b4a8836e [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.
// !!! THIS FILE IS NOT YET USED !!!
// See //zircon/system/public/zircon/syscalls.banjo.
// !!! THIS FILE IS NOT YET USED !!!
library zz;
[Transport="Syscall"]
protocol Cprng {
[Internal]
DrawOnce() -> (status status, vector<byte> buffer);
/// Draw from the kernel's CPRNG.
[Vdsocall,
In0="mutable<vector<byte>>"]
Draw(vector<byte> buffer) -> ();
/// Add entropy to the kernel CPRNG.
AddEntropy(vector<byte> buffer) -> (status status);
};