Atmel Software Framework

sha4_context Struct Reference

SHA-512 context structure.

#include <sha4.h>

Data Fields

unsigned char buffer [128]
 
unsigned char ipad [128]
 
int is384
 
unsigned char opad [128]
 
unsigned int64 state [8]
 
unsigned int64 total [2]
 

unsigned char sha4_context::buffer[128]

data block being processed

unsigned char sha4_context::ipad[128]

HMAC: inner padding

int sha4_context::is384

0 => SHA-512, else SHA-384

unsigned char sha4_context::opad[128]

HMAC: outer padding

unsigned int64 sha4_context::state[8]

intermediate digest state

unsigned int64 sha4_context::total[2]

number of bytes processed