D:/opendownloadmanager/ODM-1.x/Hash/sha1.h File Reference

#include <limits.h>
#include "sha1.cpp"

Go to the source code of this file.

Classes

struct  sha1_ctx

Defines

#define SHA1_BLOCK_SIZE   64
#define SHA1_DIGEST_SIZE   20
#define SHA2_GOOD   0
#define SHA2_BAD   1

Functions

void sha1_compile (sha1_ctx ctx[1])
void sha1_begin (sha1_ctx ctx[1])
void sha1_hash (const unsigned char data[], unsigned int len, sha1_ctx ctx[1])
void sha1_end (unsigned char hval[], sha1_ctx ctx[1])
void sha1 (unsigned char hval[], const unsigned char data[], unsigned int len)


Define Documentation

#define SHA1_BLOCK_SIZE   64

Definition at line 23 of file sha1.h.

Referenced by sha1_compile(), sha1_end(), and sha1_hash().

#define SHA1_DIGEST_SIZE   20

Definition at line 24 of file sha1.h.

Referenced by sha1_end().

#define SHA2_BAD   1

Definition at line 26 of file sha1.h.

Referenced by sha2(), and sha2_begin().

#define SHA2_GOOD   0

Definition at line 25 of file sha1.h.

Referenced by sha2(), and sha2_begin().


Function Documentation

void sha1 ( unsigned char  hval[],
const unsigned char  data[],
unsigned int  len 
)

Definition at line 206 of file sha1.cpp.

References sha1_begin(), sha1_end(), and sha1_hash().

Referenced by vmsHash::Hash_SHA1().

void sha1_begin ( sha1_ctx  ctx[1]  ) 

Definition at line 127 of file sha1.cpp.

References sha1_ctx::count, and sha1_ctx::hash.

Referenced by vmsHash::Hash_SHA1(), and sha1().

void sha1_compile ( sha1_ctx  ctx[1]  ) 

Definition at line 82 of file sha1.cpp.

References a, b, c, ch, simple_client::e, sha1_ctx::hash, maj, parity, rnd, rotl32, SHA1_BLOCK_SIZE, swap_b32, and sha1_ctx::wbuf.

Referenced by sha1_end(), and sha1_hash().

void sha1_end ( unsigned char  hval[],
sha1_ctx  ctx[1] 
)

void sha1_hash ( const unsigned char  data[],
unsigned int  len,
sha1_ctx  ctx[1] 
)

Definition at line 137 of file sha1.cpp.

References sha1_ctx::count, pos(), SHA1_BLOCK_SIZE, sha1_compile(), SHA1_MASK, and sha1_ctx::wbuf.

Referenced by vmsHash::Hash_SHA1(), main(), and sha1().


Generated on Sun May 25 00:19:53 2008 by  doxygen 1.5.6