Loading...
Searching...
No Matches
sha1_context Struct Reference

SHA-1 algorithm context. More...

Detailed Description

SHA-1 algorithm context.

Definition at line 49 of file sha1.h.

#include <sha1.h>

Data Fields

uint32_t buffer [SHA1_BLOCK_LENGTH/sizeof(uint32_t)]
 internal buffer
 
uint32_t state [SHA1_DIGEST_LENGTH/sizeof(uint32_t)]
 buffering current state of hashing
 
uint32_t byte_count
 already processed bytes
 
uint8_t buffer_offset
 internal state variable to keep track if the buffer is filled before proceeding to hash this block
 
uint8_t key_buffer [SHA1_BLOCK_LENGTH]
 internal state of the key buffer
 
uint8_t inner_hash [SHA1_DIGEST_LENGTH]
 temporary buffer for the inner hashing
 

Field Documentation

◆ buffer

uint32_t sha1_context::buffer[SHA1_BLOCK_LENGTH/sizeof(uint32_t)]

internal buffer

Definition at line 51 of file sha1.h.

◆ buffer_offset

uint8_t sha1_context::buffer_offset

internal state variable to keep track if the buffer is filled before proceeding to hash this block

Definition at line 58 of file sha1.h.

◆ byte_count

uint32_t sha1_context::byte_count

already processed bytes

Definition at line 55 of file sha1.h.

◆ inner_hash

uint8_t sha1_context::inner_hash[SHA1_DIGEST_LENGTH]

temporary buffer for the inner hashing

Definition at line 62 of file sha1.h.

◆ key_buffer

uint8_t sha1_context::key_buffer[SHA1_BLOCK_LENGTH]

internal state of the key buffer

Definition at line 60 of file sha1.h.

◆ state

uint32_t sha1_context::state[SHA1_DIGEST_LENGTH/sizeof(uint32_t)]

buffering current state of hashing

Definition at line 53 of file sha1.h.


The documentation for this struct was generated from the following file: