libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
Loading...
Searching...
No Matches
GblSha1Context Struct Reference

#include <gimbal_sha1.h>

Data Fields

uint32_t state [5]
 
uint32_t count [2]
 
unsigned char buffer [64]
 

Related Symbols

(Note that these are not member symbols.)

const char * GblSha1_string (const uint8_t digest[20], char buffer[80])
 
Incremental hashing

Methods for operating on an SHA1 context

void GblSha1_init (GblSha1Context *pSelf)
 
void GblSha1_update (GblSha1Context *pSelf, const void *pData, size_t length)
 
void GblSha1_final (GblSha1Context *pSelf, uint8_t digest[20])
 

Detailed Description

Context structure used for maintaining SHA1 hashing state.

Definition at line 37 of file gimbal_sha1.h.

Friends And Related Symbol Documentation

◆ GblSha1_init()

void GblSha1_init ( GblSha1Context pSelf)
related

Initializes the given SHA1 context.

◆ GblSha1_update()

void GblSha1_update ( GblSha1Context pSelf,
const void *  pData,
size_t  length 
)
related

Adds the data in pData of length bytes to the running SHA1 hash context.

◆ GblSha1_final()

void GblSha1_final ( GblSha1Context pSelf,
uint8_t  digest[20] 
)
related

Finalizes the running SHA1 hash context, returning its digest.

◆ GblSha1_string()

const char * GblSha1_string ( const uint8_t  digest[20],
char  buffer[80] 
)
related

Returns the display-friendly hexadecimal form of the given digest, with each 32-bit word separated by a space.

Field Documentation

◆ state

uint32_t GblSha1Context::state[5]

Current accumulated hash state.

Definition at line 38 of file gimbal_sha1.h.

◆ count

uint32_t GblSha1Context::count[2]

Running counter of # of hashed blocks.

Definition at line 39 of file gimbal_sha1.h.

◆ buffer

unsigned char GblSha1Context::buffer[64]

Buffer containing current 512-bit block of data.

Definition at line 40 of file gimbal_sha1.h.


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