cwist
Modern C web framework with libttak runtime
Loading...
Searching...
No Matches
rand.h File Reference

mbedTLS TLS backend: RAND_bytes over mbedTLS CTR-DRBG. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define RAND_bytes   cwist_mtls_RAND_bytes
 

Functions

int cwist_mtls_RAND_bytes (unsigned char *buf, int num)
 

Detailed Description

mbedTLS TLS backend: RAND_bytes over mbedTLS CTR-DRBG.

Part of the CWIST TLS backend seam; see shim/openssl/ssl.h for the design. The DRBG is seeded lazily from the system entropy source and re-seeded after fork(), so CWIST's pre-fork worker model never shares DRBG state between worker processes.

Definition in file rand.h.

Macro Definition Documentation

◆ RAND_bytes

#define RAND_bytes   cwist_mtls_RAND_bytes

Definition at line 17 of file rand.h.

Function Documentation

◆ cwist_mtls_RAND_bytes()

int cwist_mtls_RAND_bytes ( unsigned char *  buf,
int  num 
)

Definition at line 127 of file backend_mbedtls.c.

References cap.