Contiki-NG
Loading...
Searching...
No Matches
csprng.h File Reference

An OFB-AES-128-based CSPRNG. More...

#include "contiki.h"
#include "lib/aes-128.h"
#include <stdint.h>
#include <stdbool.h>

Go to the source code of this file.

Data Structures

struct  csprng_seed
 This is the structure of a seed. More...
 

Functions

void csprng_feed (struct csprng_seed *new_seed)
 Mixes a new seed with the current one.
 
bool csprng_rand (uint8_t *result, unsigned len)
 Generates a cryptographic random number.
 

Detailed Description

An OFB-AES-128-based CSPRNG.

Author
Konrad Krentz konra.nosp@m.d.kr.nosp@m.entz@.nosp@m.gmai.nosp@m.l.com

Definition in file csprng.h.