s/qmail 4.3.21
Next generation secure email transport
Loading...
Searching...
No Matches
sha1.h File Reference
#include <stdint.h>
Include dependency graph for sha1.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  sha1_ctx

Macros

#define SHA1_BLOCKSIZE   64
#define SHA1_DIGESTSIZE   20

Functions

void sha1_init (sha1_ctx *context)
void sha1_update (sha1_ctx *context, const uint8_t *data, uint32_t len)
void sha1_final (uint8_t hash[SHA1_DIGESTSIZE], sha1_ctx *context)
void sha1_transform (uint32_t state[5], const uint8_t buffer[SHA1_BLOCKSIZE])
void sha1_hash (char *hash, const char *data, uint32_t len)

Macro Definition Documentation

◆ SHA1_BLOCKSIZE

#define SHA1_BLOCKSIZE   64

Definition at line 15 of file sha1.h.

◆ SHA1_DIGESTSIZE

#define SHA1_DIGESTSIZE   20

Definition at line 16 of file sha1.h.

Function Documentation

◆ sha1_final()

void sha1_final ( uint8_t hash[SHA1_DIGESTSIZE],
sha1_ctx * context )

Definition at line 146 of file sha1.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sha1_hash()

void sha1_hash ( char * hash,
const char * data,
uint32_t len )

Definition at line 177 of file sha1.c.

Here is the call graph for this function:

◆ sha1_init()

void sha1_init ( sha1_ctx * context)

Definition at line 111 of file sha1.c.

Here is the caller graph for this function:

◆ sha1_transform()

void sha1_transform ( uint32_t state[5],
const uint8_t buffer[SHA1_BLOCKSIZE] )

Definition at line 47 of file sha1.c.

Here is the caller graph for this function:

◆ sha1_update()

void sha1_update ( sha1_ctx * context,
const uint8_t * data,
uint32_t len )

Definition at line 124 of file sha1.c.

Here is the call graph for this function:
Here is the caller graph for this function: