Data Structures | Defines | Typedefs | Functions

sha512.h File Reference

SHA512 hashing functions. More...

#include <stdint.h>
Include dependency graph for sha512.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _SHA512Context

Defines

#define SHA512_HASH_SIZE   64
#define SHA512_HASH_WORDS   8

Typedefs

typedef struct _SHA512Context SHA512Context

Functions

void SHA512Init (SHA512Context *sc)
void SHA512Update (SHA512Context *sc, const void *data, uint32_t len)
void SHA512Final (SHA512Context *sc, uint8_t hash[64])

Detailed Description

SHA512 hashing functions.

Author:
Allan Saddi <allan@saddi.com>
Date:
2003-07-25

Definition in file sha512.h.


Define Documentation

#define SHA512_HASH_SIZE   64

Hash size

Definition at line 52 of file sha512.h.

#define SHA512_HASH_WORDS   8

Hash size in 64-bit words

Definition at line 57 of file sha512.h.


Typedef Documentation

typedef struct _SHA512Context SHA512Context

SHA512 context, used during calculation if SHA512 hashes

Definition at line 78 of file sha512.h.


Function Documentation

void SHA512Final ( SHA512Context sc,
uint8_t  hash[64] 
)

Completes the calculation and returns a SHA512 hash.

Parameters:
sc SHA512Context
hash Array where the hash result will be put

Completes the calculation and returns a SHA512 hash.

Parameters:
sc SHA512Context
hash Array where the hash result will be put

Definition at line 418 of file sha512.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void SHA512Init ( SHA512Context sc  ) 

Initiates a new SHA512 context with needed values

Parameters:
sc SHA512Context

Definition at line 231 of file sha512.c.

Here is the caller graph for this function:

void SHA512Update ( SHA512Context sc,
const void *  vdata,
uint32_t  len 
)

Feeds the SHA512 with data for calculating the hash

Parameters:
sc SHA512Context
vdata Pointer to the data
len Length of the data

Definition at line 323 of file sha512.c.

Here is the caller graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines