| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
Public Attributes | List of all members
_sober128_prng Struct Reference

Internal state structure for the Sober128 pseudorandom number generator. More...

`#include <sober128.h>`

## Public Attributes
unsigned long | R [17]
unsigned long | initR [17]
unsigned long | konst
unsigned long | sbuf
int | nbuf
int | flag
int | set

## Detailed Description

Internal state structure for the Sober128 pseudorandom number generator.

This structure holds the working state and configuration for the Sober128 stream cipher, used for cryptographic pseudorandom number generation. It includes shift register contents, buffering state, and flags for entropy initialization.

## Member Data Documentation

## ◆ flag

int _sober128_prng::flag

Indicates whether `add_entropy()` has been called for the first time.

## ◆ initR

unsigned long _sober128_prng::initR[17]

Saved copy of the register contents.

## ◆ konst

unsigned long _sober128_prng::konst

Key-dependent constant used in the cipher.

## ◆ nbuf

int _sober128_prng::nbuf

Number of buffered bits from a partial stream word.

## ◆ R

unsigned long _sober128_prng::R[17]

Working storage for the shift register.

## ◆ sbuf

unsigned long _sober128_prng::sbuf

Partial word encryption buffer.

## ◆ set

int _sober128_prng::set

Indicates whether entropy has been added to initialize the key.

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

- /builds/wireshark/wireshark/wsutil/sober128.h