# sha4_context Struct Reference

`#include <sha4.h>`

## Detailed Description

SHA-512 context structure.

Definition at line 37 of file 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]

## Field Documentation

unsigned char sha4_context::buffer[128]

data block being processed

Definition at line 41 of file sha4.h.

unsigned char sha4_context::ipad[128]

HMAC: inner padding

Definition at line 43 of file sha4.h.

int sha4_context::is384

0 => SHA-512, else SHA-384

Definition at line 45 of file sha4.h.

unsigned char sha4_context::opad[128]

HMAC: outer padding

Definition at line 44 of file sha4.h.

unsigned int64 sha4_context::state[8]

intermediate digest state

Definition at line 40 of file sha4.h.

unsigned int64 sha4_context::total[2]

number of bytes processed

Definition at line 39 of file sha4.h.