cryptlib  3.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
Classes | Macros | Typedefs | Functions
sha.h File Reference

Go to the source code of this file.

Classes

struct  SHAstate_st
 

Macros

#define SHA_LONG   unsigned int
 
#define SHA_LBLOCK   16
 
#define SHA_CBLOCK
 
#define SHA_LAST_BLOCK   (SHA_CBLOCK-8)
 
#define SHA_DIGEST_LENGTH   20
 

Typedefs

typedef struct SHAstate_st SHA_CTX
 

Functions

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

Macro Definition Documentation

#define SHA_CBLOCK
Value:
(SHA_LBLOCK*4) /* SHA treats input data as a
* contiguous array of 32 bit
* wide big-endian values. */

Definition at line 87 of file sha.h.

#define SHA_DIGEST_LENGTH   20

Definition at line 89 of file sha.h.

#define SHA_LAST_BLOCK   (SHA_CBLOCK-8)

Definition at line 88 of file sha.h.

#define SHA_LBLOCK   16

Definition at line 86 of file sha.h.

#define SHA_LONG   unsigned int

Definition at line 83 of file sha.h.

Typedef Documentation

typedef struct SHAstate_st SHA_CTX

Function Documentation

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