include/beecrypt/sha1.h File Reference

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

#include "beecrypt/beecrypt.h"
#include "beecrypt/sha1opt.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  sha1Param
 Holds all the parameters necessary for the SHA-1 algorithm. More...

Functions

BEECRYPTAPI void sha1Process (sha1Param *sp)
 This function performs the core of the SHA-1 hash algorithm; it processes a block of 64 bytes.
BEECRYPTAPI int sha1Reset (sha1Param *sp)
 This function resets the parameter block so that it's ready for a new hash.
BEECRYPTAPI int sha1Update (sha1Param *sp, const byte *data, size_t size)
 This function should be used to pass successive blocks of data to be hashed.
BEECRYPTAPI int sha1Digest (sha1Param *sp, byte *digest)
 This function finishes the current hash computation and copies the digest value into digest.

Variables

BEECRYPTAPI const hashFunction sha1
 Holds the full API description of the MD5 algorithm.


Detailed Description

SHA-1 hash function, headers.

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

Function Documentation

int sha1Digest ( sha1Param 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 20-byte digest.
Return values:
0 on success.

void sha1Process ( sha1Param sp  ) 

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

Parameters:
sp The hash function's parameter block.

int sha1Reset ( sha1Param 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 sha1Update ( sha1Param 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

Holds the full API description of the MD5 algorithm.

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


Generated on Fri Jun 19 13:38:57 2009 for BeeCrypt by  doxygen 1.5.8