Example program to test AES-GCM functionality. Used for a workshop

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

hmac_drbg_context Struct Reference

hmac_drbg_context Struct Reference

HMAC_DRBG context. More...

#include <hmac_drbg.h>

Data Fields

md_context_t md_ctx
unsigned char V [POLARSSL_MD_MAX_SIZE]
int reseed_counter
size_t entropy_len
int prediction_resistance
int reseed_interval
int(* f_entropy )(void *, unsigned char *, size_t)
void * p_entropy

Detailed Description

HMAC_DRBG context.

Definition at line 76 of file hmac_drbg.h.


Field Documentation

size_t entropy_len

entropy bytes grabbed on each (re)seed

Definition at line 85 of file hmac_drbg.h.

int(* f_entropy)(void *, unsigned char *, size_t)

entropy function

Definition at line 91 of file hmac_drbg.h.

HMAC context (inc. K)

Definition at line 80 of file hmac_drbg.h.

void* p_entropy

context for the entropy function

Definition at line 92 of file hmac_drbg.h.

enable prediction resistance (Automatic reseed before every random generation)

Definition at line 86 of file hmac_drbg.h.

reseed counter

Definition at line 82 of file hmac_drbg.h.

reseed interval

Definition at line 88 of file hmac_drbg.h.

unsigned char V[POLARSSL_MD_MAX_SIZE]

V in the spec

Definition at line 81 of file hmac_drbg.h.