sha1dgst.c File Reference

#include <stdio.h>
#include <string.h>
#include "sha.h"
#include "sha_locl.h"

Include dependency graph for sha1dgst.c:

Go to the source code of this file.

Defines

#define SHA_1
#define INIT_DATA_h0   (unsigned long)0x67452301L
#define INIT_DATA_h1   (unsigned long)0xefcdab89L
#define INIT_DATA_h2   (unsigned long)0x98badcfeL
#define INIT_DATA_h3   (unsigned long)0x10325476L
#define INIT_DATA_h4   (unsigned long)0xc3d2e1f0L
#define K_00_19   0x5a827999L
#define K_20_39   0x6ed9eba1L
#define K_40_59   0x8f1bbcdcL
#define K_60_79   0xca62c1d6L
#define M_c2nl   c2nl
#define M_p_c2nl   p_c2nl
#define M_c2nl_p   c2nl_p
#define M_p_c2nl_p   p_c2nl_p
#define M_nl2c   nl2c

Functions

void sha1_block (SHA_CTX *c, register unsigned long *p, int num)
void SHA1_Init (SHA_CTX *c)
void SHA1_Update (SHA_CTX *c, unsigned char *data, unsigned long len)
void SHA1_Transform (SHA_CTX *c, unsigned char *b)
void sha1_block (SHA_CTX *c, unsigned long *W, int num)
void SHA1_Final (unsigned char *md, SHA_CTX *c)

Variables

char * SHA1_version = "SHA1 part of OpenSSL 0.9.1c 23-Dec-1998"


Define Documentation

#define INIT_DATA_h0   (unsigned long)0x67452301L
 

Definition at line 71 of file sha1dgst.c.

Referenced by SHA1_Init().

#define INIT_DATA_h1   (unsigned long)0xefcdab89L
 

Definition at line 72 of file sha1dgst.c.

Referenced by SHA1_Init().

#define INIT_DATA_h2   (unsigned long)0x98badcfeL
 

Definition at line 73 of file sha1dgst.c.

Referenced by SHA1_Init().

#define INIT_DATA_h3   (unsigned long)0x10325476L
 

Definition at line 74 of file sha1dgst.c.

Referenced by SHA1_Init().

#define INIT_DATA_h4   (unsigned long)0xc3d2e1f0L
 

Definition at line 75 of file sha1dgst.c.

Referenced by SHA1_Init().

#define K_00_19   0x5a827999L
 

Definition at line 77 of file sha1dgst.c.

#define K_20_39   0x6ed9eba1L
 

Definition at line 78 of file sha1dgst.c.

#define K_40_59   0x8f1bbcdcL
 

Definition at line 79 of file sha1dgst.c.

#define K_60_79   0xca62c1d6L
 

Definition at line 80 of file sha1dgst.c.

#define M_c2nl   c2nl
 

Definition at line 106 of file sha1dgst.c.

Referenced by SHA1_Update().

#define M_c2nl_p   c2nl_p
 

Definition at line 108 of file sha1dgst.c.

#define M_nl2c   nl2c
 

Definition at line 110 of file sha1dgst.c.

#define M_p_c2nl   p_c2nl
 

Definition at line 107 of file sha1dgst.c.

Referenced by SHA1_Final(), and SHA1_Update().

#define M_p_c2nl_p   p_c2nl_p
 

Definition at line 109 of file sha1dgst.c.

#define SHA_1
 

Definition at line 62 of file sha1dgst.c.


Function Documentation

void sha1_block SHA_CTX c,
unsigned long W,
int  num
 

Definition at line 298 of file sha1dgst.c.

References BODY_00_15, BODY_16_19, BODY_20_31, BODY_32_39, BODY_40_59, and BODY_60_79.

void sha1_block SHA_CTX c,
register unsigned long p,
int  num
 

Referenced by SHA1_Final(), and SHA1_Update().

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 *  b
 

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:


Variable Documentation

char* SHA1_version = "SHA1 part of OpenSSL 0.9.1c 23-Dec-1998"
 

Definition at line 66 of file sha1dgst.c.


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