sha.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SHAstate_st

Defines

#define SHA_CBLOCK   64
#define SHA_LBLOCK   16
#define SHA_BLOCK   16
#define SHA_LAST_BLOCK   56
#define SHA_LENGTH_BLOCK   8
#define SHA_DIGEST_LENGTH   20

Typedefs

typedef SHAstate_st SHA_CTX

Functions

void SHA_Init (SHA_CTX *c)
void SHA_Update (SHA_CTX *c, unsigned char *data, unsigned long len)
void SHA_Final (unsigned char *md, SHA_CTX *c)
unsigned char * SHA (unsigned char *d, unsigned long n, unsigned char *md)
void SHA_Transform (SHA_CTX *c, unsigned char *data)
void SHA1_Init (SHA_CTX *c)
void SHA1_Update (SHA_CTX *c, unsigned char *data, unsigned long len)
void SHA1_Final (unsigned char *md, SHA_CTX *c)
unsigned char * SHA1 (unsigned char *d, unsigned long n, unsigned char *md)
void SHA1_Transform (SHA_CTX *c, unsigned char *data)


Define Documentation

#define SHA_BLOCK   16
 

Definition at line 68 of file sha.h.

#define SHA_CBLOCK   64
 

Definition at line 66 of file sha.h.

Referenced by hmacsha1(), and SHA1_Update().

#define SHA_DIGEST_LENGTH   20
 

Definition at line 71 of file sha.h.

#define SHA_LAST_BLOCK   56
 

Definition at line 69 of file sha.h.

Referenced by SHA1_Final().

#define SHA_LBLOCK   16
 

Definition at line 67 of file sha.h.

Referenced by SHA1_Final(), SHA1_Transform(), and SHA1_Update().

#define SHA_LENGTH_BLOCK   8
 

Definition at line 70 of file sha.h.


Typedef Documentation

typedef struct SHAstate_st SHA_CTX
 


Function Documentation

unsigned char* SHA unsigned char *  d,
unsigned long  n,
unsigned char *  md
 

unsigned char* SHA1 unsigned char *  d,
unsigned long  n,
unsigned char *  md
 

void SHA1_Final unsigned char *  md,
SHA_CTX c
 

Definition at line 418 of file sha1dgst.c.

References SHAstate_st::data, Endian_Reverse32, SHAstate_st::h0, SHAstate_st::h1, SHAstate_st::h2, SHAstate_st::h3, SHAstate_st::h4, i, M_p_c2nl, SHAstate_st::Nh, SHAstate_st::Nl, nl2c, SHAstate_st::num, sha1_block(), SHA_LAST_BLOCK, and SHA_LBLOCK.

Referenced by hmacsha1().

Here is the call graph for this function:

void SHA1_Init SHA_CTX c  ) 
 

Definition at line 113 of file sha1dgst.c.

References INIT_DATA_h0, INIT_DATA_h1, INIT_DATA_h2, INIT_DATA_h3, and INIT_DATA_h4.

Referenced by hmacsha1().

void SHA1_Transform SHA_CTX c,
unsigned char *  data
 

Definition at line 259 of file sha1dgst.c.

References Endian_Reverse32, i, and SHA_LBLOCK.

void SHA1_Update SHA_CTX c,
unsigned char *  data,
unsigned long  len
 

Definition at line 126 of file sha1dgst.c.

References M_c2nl, M_p_c2nl, sha1_block(), SHA_CBLOCK, SHA_LBLOCK, and ULONG.

Referenced by hmacsha1().

Here is the call graph for this function:

void SHA_Final unsigned char *  md,
SHA_CTX c
 

void SHA_Init SHA_CTX c  ) 
 

void SHA_Transform SHA_CTX c,
unsigned char *  data
 

void SHA_Update SHA_CTX c,
unsigned char *  data,
unsigned long  len
 


Generated on Sat Jun 10 06:18:46 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6