dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
sha1.h File Reference
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  SHA1_CTX
 

Macros

#define SHA1_BLOCK_SIZE   20
 

Functions

void sha1_init (SHA1_CTX *ctx)
 
void sha1_update (SHA1_CTX *ctx, const uint8_t data[], size_t len)
 
void sha1_final (SHA1_CTX *ctx, uint8_t hash[])
 

Macro Definition Documentation

#define SHA1_BLOCK_SIZE   20

Definition at line 17 of file sha1.h.

Function Documentation

void sha1_final ( SHA1_CTX ctx,
uint8_t  hash[] 
)

Definition at line 108 of file sha1.c.

void sha1_init ( SHA1_CTX ctx)

Definition at line 78 of file sha1.c.

void sha1_update ( SHA1_CTX ctx,
const uint8_t  data[],
size_t  len 
)

Definition at line 93 of file sha1.c.