Data Structures | Data Fields
crypto_fast_rng_t Struct Reference

Data Structures

struct  cbuf

Data Fields

int16_t n_till_reseed
uint16_t bytes_left
struct crypto_fast_rng_t::cbuf buf

Detailed Description

Definition at line 96 of file crypto_rand_fast.c.

Field Documentation

◆ bytes_left

uint16_t crypto_fast_rng_t::bytes_left

How many bytes are remaining in cbuf.bytes?

Definition at line 106 of file crypto_rand_fast.c.

Referenced by crypto_fast_rng_getbytes_impl().

◆ n_till_reseed

int16_t crypto_fast_rng_t::n_till_reseed

How many more fills does this buffer have before we should mix in the output of crypto_strongest_rand()?

This value may be negative if unit tests are enabled. If so, it indicates that we should never mix in extra data from crypto_strongest_rand().

Definition at line 104 of file crypto_rand_fast.c.

Referenced by crypto_fast_rng_refill().

The documentation for this struct was generated from the following file: