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

Go to the source code of this file.

Macros

#define ROTLEFT(a, b)   ((a << b) | (a >> (32 - b)))
 

Functions

void sha1_transform (SHA1_CTX *ctx, const uint8_t data[])
 
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 ROTLEFT (   a,
 
)    ((a << b) | (a >> (32 - b)))

Definition at line 18 of file sha1.c.

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_transform ( SHA1_CTX ctx,
const uint8_t  data[] 
)

Definition at line 21 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.