Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

sha512.h File Reference

SHA-512 hash function, headers. More...

#include "beecrypt/beecrypt.h"

Include dependency graph for sha512.h:

Go to the source code of this file.

Functions

BEECRYPTAPI void sha512Process (sha512Param *sp)
 This function performs the core of the SHA-512 hash algorithm; it processes a block of 128 bytes.
BEECRYPTAPI int sha512Reset (sha512Param *sp)
 This function resets the parameter block so that it's ready for a new hash.
BEECRYPTAPI int sha512Update (sha512Param *sp, const byte *data, size_t size)
 This function should be used to pass successive blocks of data to be hashed.
BEECRYPTAPI int sha512Digest (sha512Param *sp, byte *digest)
 This function finishes the current hash computation and copies the digest value into digest.

Variables

BEECRYPTAPI const hashFunction sha512
 Holds the full API description of the SHA-512 algorithm.


Detailed Description

SHA-512 hash function, headers.

Author:
Bob Deblier <bob.deblier@telenet.be>

Function Documentation

int sha512Digest sha512Param sp,
byte digest
 

This function finishes the current hash computation and copies the digest value into digest.

Parameters:
sp The hash function's parameter block.
digest The place to store the 64-byte digest.
Return values:
0 on success.

void sha512Process sha512Param sp  ) 
 

This function performs the core of the SHA-512 hash algorithm; it processes a block of 128 bytes.

Parameters:
sp The hash function's parameter block.

int sha512Reset sha512Param sp  ) 
 

This function resets the parameter block so that it's ready for a new hash.

Parameters:
sp The hash function's parameter block.
Return values:
0 on success.

int sha512Update sha512Param sp,
const byte data,
size_t  size
 

This function should be used to pass successive blocks of data to be hashed.

Parameters:
sp The hash function's parameter block.
data 
size 
Return values:
0 on success.


Variable Documentation

sha512
 

Holds the full API description of the SHA-512 algorithm.


Generated on Mon Jun 20 08:15:27 2005 for BeeCrypt by  doxygen 1.4.0