assh/assh_prng.h header reference

Description  

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

See also Core and modules.

Members  

Types  

Functions  

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

Members detail  

const assh_prng_s * assh_default_prng(void )  

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(assh_context_s *c, uint8_t *rdata, size_t rdata_len, assh_prng_quality_e quality)  

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  

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  

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 Sep 27 13:33:12 2020 using MkDoc