assh/assh_prng.h header reference

Description [link] 

This header file contains descriptors for random number generator modules implemented in the library.

See also Core and modules.

Members [link] 

Types [link] 

Functions [link] 

  • const struct assh_prng_s * assh_default_prng(void )
  • assh_status_t assh_prng_get(struct assh_context_s *c, uint8_t *rdata, size_t rdata_len, enum assh_prng_quality_e quality)

Members detail [link] 

const struct assh_prng_s * assh_default_prng(void ) [link] 

This function is declared in assh/assh_prng.h source file, line 110.

This function returns the default prng. This depends on the platform and build configuration. This may return NULL.

assh_status_t assh_prng_get(struct assh_context_s *c, uint8_t *rdata, size_t rdata_len, enum assh_prng_quality_e quality) [link] 

This function is declared in assh/assh_prng.h source file, line 105.

This function fills the buffer with random data.

enum assh_prng_quality_e [link] 

This enum is declared in assh/assh_prng.h source file, line 42.

This enum specifies quality of randomly generated data.

IdentifierDescription
ASSH_PRNG_QUALITY_WEAKweak random data for use in the testsuite
ASSH_PRNG_QUALITY_PUBLICrandom data for use as public parameter
ASSH_PRNG_QUALITY_PADDINGrandom data for use as ssh packet padding
ASSH_PRNG_QUALITY_NONCErandom data for use as nonce in signature algorithms
ASSH_PRNG_QUALITY_EPHEMERAL_KEYrandom data for use in ephemeral key generation
ASSH_PRNG_QUALITY_LONGTERM_KEYrandom data for use in long term key generation

struct assh_prng_s [link] 

This struct is declared in assh/assh_prng.h source file, line 95.

This struct is the prng module interface descriptor structure.

See also Core and modules.

Valid XHTML 1.0 StrictGenerated by diaxen on Sun Oct 25 23:30:45 2020 using MkDoc