MCPcopy Create free account
hub / github.com/RustCrypto/utils / private_byte

Function private_byte

cmov/checkct/driver/src/driver.rs:11–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10#[inline]
11fn private_byte() -> u8 {
12 // The generated BINSEC script requires both RNG symbols, even though these
13 // checks only need secret inputs. Keep the public hook linked as well.
14 black_box(PublicRng.next_u32());
15 let mut bytes = [0u8; 1];
16 PrivateRng.fill_bytes(&mut bytes);
17 bytes[0]
18}
19
20macro_rules! private_integer {
21 ($ty:ty) => {{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected