sha.h File Reference

#include <openssl/e_os2.h>
#include <stddef.h>

Go to the source code of this file.

Data Structures

struct  SHAstate_st
struct  SHA256state_st
struct  SHA512state_st

Defines

#define SHA_LONG   unsigned int
#define SHA_LBLOCK   16
#define SHA_CBLOCK   (SHA_LBLOCK*4)
#define SHA_LAST_BLOCK   (SHA_CBLOCK-8)
#define SHA_DIGEST_LENGTH   20
#define SHA256_CBLOCK   (SHA_LBLOCK*4)
#define SHA224_DIGEST_LENGTH   28
#define SHA256_DIGEST_LENGTH   32
#define SHA384_DIGEST_LENGTH   48
#define SHA512_DIGEST_LENGTH   64
#define SHA512_CBLOCK   (SHA_LBLOCK*8)
#define SHA_LONG64   unsigned long long
#define U64(C)   C##ULL

Typedefs

typedef struct SHAstate_st SHA_CTX
typedef struct SHA256state_st SHA256_CTX
typedef struct SHA512state_st SHA512_CTX

Functions

int SHA_Init (SHA_CTX *c)
int SHA_Update (SHA_CTX *c, const void *data, size_t len)
int SHA_Final (unsigned char *md, SHA_CTX *c)
unsigned char * SHA (const unsigned char *d, size_t n, unsigned char *md)
void SHA_Transform (SHA_CTX *c, const unsigned char *data)
int SHA1_Init (SHA_CTX *c)
int SHA1_Update (SHA_CTX *c, const void *data, size_t len)
int SHA1_Final (unsigned char *md, SHA_CTX *c)
unsigned char * SHA1 (const unsigned char *d, size_t n, unsigned char *md)
void SHA1_Transform (SHA_CTX *c, const unsigned char *data)
int SHA224_Init (SHA256_CTX *c)
int SHA224_Update (SHA256_CTX *c, const void *data, size_t len)
int SHA224_Final (unsigned char *md, SHA256_CTX *c)
unsigned char * SHA224 (const unsigned char *d, size_t n, unsigned char *md)
int SHA256_Init (SHA256_CTX *c)
int SHA256_Update (SHA256_CTX *c, const void *data, size_t len)
int SHA256_Final (unsigned char *md, SHA256_CTX *c)
unsigned char * SHA256 (const unsigned char *d, size_t n, unsigned char *md)
void SHA256_Transform (SHA256_CTX *c, const unsigned char *data)
int SHA384_Init (SHA512_CTX *c)
int SHA384_Update (SHA512_CTX *c, const void *data, size_t len)
int SHA384_Final (unsigned char *md, SHA512_CTX *c)
unsigned char * SHA384 (const unsigned char *d, size_t n, unsigned char *md)
int SHA512_Init (SHA512_CTX *c)
int SHA512_Update (SHA512_CTX *c, const void *data, size_t len)
int SHA512_Final (unsigned char *md, SHA512_CTX *c)
unsigned char * SHA512 (const unsigned char *d, size_t n, unsigned char *md)
void SHA512_Transform (SHA512_CTX *c, const unsigned char *data)


Define Documentation

#define SHA224_DIGEST_LENGTH   28

Definition at line 126 of file sha.h.

#define SHA256_CBLOCK   (SHA_LBLOCK*4)

Definition at line 123 of file sha.h.

#define SHA256_DIGEST_LENGTH   32

Definition at line 127 of file sha.h.

#define SHA384_DIGEST_LENGTH   48

Definition at line 149 of file sha.h.

#define SHA512_CBLOCK   (SHA_LBLOCK*8)

Definition at line 158 of file sha.h.

#define SHA512_DIGEST_LENGTH   64

Definition at line 150 of file sha.h.

#define SHA_CBLOCK   (SHA_LBLOCK*4)

Definition at line 94 of file sha.h.

#define SHA_DIGEST_LENGTH   20

Definition at line 98 of file sha.h.

#define SHA_LAST_BLOCK   (SHA_CBLOCK-8)

Definition at line 97 of file sha.h.

#define SHA_LBLOCK   16

Definition at line 93 of file sha.h.

#define SHA_LONG   unsigned int

Definition at line 90 of file sha.h.

#define SHA_LONG64   unsigned long long

Definition at line 168 of file sha.h.

#define U64 (  )     C##ULL

Definition at line 169 of file sha.h.


Typedef Documentation

typedef struct SHA256state_st SHA256_CTX

typedef struct SHA512state_st SHA512_CTX

typedef struct SHAstate_st SHA_CTX


Function Documentation

unsigned char* SHA ( const unsigned char *  d,
size_t  n,
unsigned char *  md 
)

unsigned char* SHA1 ( const unsigned char *  d,
size_t  n,
unsigned char *  md 
)

int SHA1_Final ( unsigned char *  md,
SHA_CTX c 
)

int SHA1_Init ( SHA_CTX c  ) 

void SHA1_Transform ( SHA_CTX c,
const unsigned char *  data 
)

int SHA1_Update ( SHA_CTX c,
const void *  data,
size_t  len 
)

unsigned char* SHA224 ( const unsigned char *  d,
size_t  n,
unsigned char *  md 
)

int SHA224_Final ( unsigned char *  md,
SHA256_CTX c 
)

int SHA224_Init ( SHA256_CTX c  ) 

int SHA224_Update ( SHA256_CTX c,
const void *  data,
size_t  len 
)

unsigned char* SHA256 ( const unsigned char *  d,
size_t  n,
unsigned char *  md 
)

int SHA256_Final ( unsigned char *  md,
SHA256_CTX c 
)

int SHA256_Init ( SHA256_CTX c  ) 

void SHA256_Transform ( SHA256_CTX c,
const unsigned char *  data 
)

int SHA256_Update ( SHA256_CTX c,
const void *  data,
size_t  len 
)

unsigned char* SHA384 ( const unsigned char *  d,
size_t  n,
unsigned char *  md 
)

int SHA384_Final ( unsigned char *  md,
SHA512_CTX c 
)

int SHA384_Init ( SHA512_CTX c  ) 

int SHA384_Update ( SHA512_CTX c,
const void *  data,
size_t  len 
)

unsigned char* SHA512 ( const unsigned char *  d,
size_t  n,
unsigned char *  md 
)

int SHA512_Final ( unsigned char *  md,
SHA512_CTX c 
)

int SHA512_Init ( SHA512_CTX c  ) 

void SHA512_Transform ( SHA512_CTX c,
const unsigned char *  data 
)

int SHA512_Update ( SHA512_CTX c,
const void *  data,
size_t  len 
)

int SHA_Final ( unsigned char *  md,
SHA_CTX c 
)

int SHA_Init ( SHA_CTX c  ) 

void SHA_Transform ( SHA_CTX c,
const unsigned char *  data 
)

int SHA_Update ( SHA_CTX c,
const void *  data,
size_t  len 
)


Generated on Thu Aug 20 22:33:07 2009 for OpenXDAS by  doxygen 1.5.6