OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Typedefs | Functions
sha.h File Reference
#include <openssl/e_os2.h>
#include <stddef.h>

Go to the source code of this file.

Classes

struct  SHAstate_st
 
struct  SHA256state_st
 
struct  SHA512state_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
 
#define SHA256_CBLOCK
 
#define SHA224_DIGEST_LENGTH   28
 
#define SHA256_DIGEST_LENGTH   32
 
#define SHA384_DIGEST_LENGTH   48
 
#define SHA512_DIGEST_LENGTH   64
 
#define SHA512_CBLOCK
 
#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)
 

Macro Definition Documentation

#define SHA224_DIGEST_LENGTH   28

Definition at line 128 of file sha.h.

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

Definition at line 127 of file sha.h.

#define SHA256_DIGEST_LENGTH   32

Definition at line 129 of file sha.h.

#define SHA384_DIGEST_LENGTH   48

Definition at line 155 of file sha.h.

#define SHA512_CBLOCK
Value:
(SHA_LBLOCK*8) /* SHA-512 treats input data as a
* contiguous array of 64 bit
* wide big-endian values. */

Definition at line 164 of file sha.h.

#define SHA512_DIGEST_LENGTH   64

Definition at line 156 of file sha.h.

#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 94 of file sha.h.

#define SHA_DIGEST_LENGTH   20

Definition at line 96 of file sha.h.

#define SHA_LAST_BLOCK   (SHA_CBLOCK-8)

Definition at line 95 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 172 of file sha.h.

#define U64 (   C)    C##ULL

Definition at line 173 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 
)

Definition at line 65 of file sha_one.c.

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

Definition at line 65 of file sha1_one.c.

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 
)

Definition at line 41 of file sha256.c.

int SHA224_Final ( unsigned char *  md,
SHA256_CTX c 
)

Definition at line 69 of file sha256.c.

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

Definition at line 67 of file sha256.c.

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

Definition at line 54 of file sha256.c.

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 
)

Definition at line 237 of file sha512.c.

int SHA384_Final ( unsigned char *  md,
SHA512_CTX c 
)

Definition at line 177 of file sha512.c.

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

Definition at line 231 of file sha512.c.

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

Definition at line 250 of file sha512.c.

int SHA512_Final ( unsigned char *  md,
SHA512_CTX c 
)

Definition at line 99 of file sha512.c.

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

Definition at line 234 of file sha512.c.

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

Definition at line 180 of file sha512.c.

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 
)