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

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

#include "lib/csprng.h"
#include "lib/aes-128.h"
#include "sys/cc.h"
#include <string.h>
#include "sys/log.h"

Go to the source code of this file.

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.c.