Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
sha.h File Reference
#include <openssl/e_os2.h>
#include <stddef.h>
+ Include dependency graph for sha.h:
+ This graph shows which files directly or indirectly include this file:

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   (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 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

◆ SHA224_DIGEST_LENGTH

#define SHA224_DIGEST_LENGTH   28

Definition at line 64 of file sha.h.

◆ SHA256_CBLOCK

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

Definition at line 45 of file sha.h.

◆ SHA256_DIGEST_LENGTH

#define SHA256_DIGEST_LENGTH   32

Definition at line 65 of file sha.h.

◆ SHA384_DIGEST_LENGTH

#define SHA384_DIGEST_LENGTH   48

Definition at line 66 of file sha.h.

◆ SHA512_CBLOCK

#define SHA512_CBLOCK   (SHA_LBLOCK*8)

Definition at line 79 of file sha.h.

◆ SHA512_DIGEST_LENGTH

#define SHA512_DIGEST_LENGTH   64

Definition at line 67 of file sha.h.

◆ SHA_CBLOCK

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

◆ SHA_DIGEST_LENGTH

#define SHA_DIGEST_LENGTH   20

Definition at line 30 of file sha.h.

◆ SHA_LAST_BLOCK

#define SHA_LAST_BLOCK   (SHA_CBLOCK-8)

Definition at line 29 of file sha.h.

◆ SHA_LBLOCK

#define SHA_LBLOCK   16

Definition at line 27 of file sha.h.

◆ SHA_LONG

#define SHA_LONG   unsigned int

Definition at line 25 of file sha.h.

◆ SHA_LONG64

#define SHA_LONG64   unsigned long long

Definition at line 87 of file sha.h.

◆ U64

#define U64 ( C)    C##ULL

Definition at line 88 of file sha.h.

Typedef Documentation

◆ SHA256_CTX

typedef struct SHA256state_st SHA256_CTX

◆ SHA512_CTX

typedef struct SHA512state_st SHA512_CTX

◆ SHA_CTX

typedef struct SHAstate_st SHA_CTX

Function Documentation

◆ SHA1()

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

◆ SHA1_Final()

int SHA1_Final ( unsigned char * md,
SHA_CTX * c )

◆ SHA1_Init()

int SHA1_Init ( SHA_CTX * c)

◆ SHA1_Transform()

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

◆ SHA1_Update()

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

◆ SHA224()

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

◆ SHA224_Final()

int SHA224_Final ( unsigned char * md,
SHA256_CTX * c )

◆ SHA224_Init()

int SHA224_Init ( SHA256_CTX * c)

◆ SHA224_Update()

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

◆ SHA256()

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

◆ SHA256_Final()

int SHA256_Final ( unsigned char * md,
SHA256_CTX * c )

◆ SHA256_Init()

int SHA256_Init ( SHA256_CTX * c)

◆ SHA256_Transform()

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

◆ SHA256_Update()

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

◆ SHA384()

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

◆ SHA384_Final()

int SHA384_Final ( unsigned char * md,
SHA512_CTX * c )

◆ SHA384_Init()

int SHA384_Init ( SHA512_CTX * c)

◆ SHA384_Update()

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

◆ SHA512()

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

◆ SHA512_Final()

int SHA512_Final ( unsigned char * md,
SHA512_CTX * c )

◆ SHA512_Init()

int SHA512_Init ( SHA512_CTX * c)

◆ SHA512_Transform()

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

◆ SHA512_Update()

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