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]
- enum assh_prng_quality_e
- struct assh_prng_s
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.
Identifier | Description |
---|---|
ASSH_PRNG_QUALITY_WEAK | weak random data for use in the testsuite |
ASSH_PRNG_QUALITY_PUBLIC | random data for use as public parameter |
ASSH_PRNG_QUALITY_PADDING | random data for use as ssh packet padding |
ASSH_PRNG_QUALITY_NONCE | random data for use as nonce in signature algorithms |
ASSH_PRNG_QUALITY_EPHEMERAL_KEY | random data for use in ephemeral key generation |
ASSH_PRNG_QUALITY_LONGTERM_KEY | random 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.