SWILIB API (X75)    
Loading...
Searching...
No Matches
sha.h File Reference

Go to the source code of this file.

Data Structures

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)
 
unsigned char * SHA1 (const unsigned char *d, unsigned long n, unsigned char *md)
 
void SHA1_Transform (SHA_CTX *c, const unsigned char *data)
 

Data Structure Documentation

◆ SHAstate_st

struct SHAstate_st

Macro Definition Documentation

◆ SHA_LONG

#define SHA_LONG   unsigned int

Definition at line 83 of file sha.h.

◆ SHA_LBLOCK

#define SHA_LBLOCK   16

Definition at line 86 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. */
#define SHA_LBLOCK
Definition sha.h:86

Definition at line 87 of file sha.h.

◆ SHA_LAST_BLOCK

#define SHA_LAST_BLOCK   (SHA_CBLOCK-8)

Definition at line 88 of file sha.h.

◆ SHA_DIGEST_LENGTH

#define SHA_DIGEST_LENGTH   20

Definition at line 89 of file sha.h.

Typedef Documentation

◆ SHA_CTX

typedef struct SHAstate_st SHA_CTX

Function Documentation

◆ SHA_Init()

void SHA_Init ( SHA_CTX * c)

◆ SHA_Update()

void SHA_Update ( SHA_CTX * c,
const void * data,
unsigned long len )

◆ SHA_Final()

void SHA_Final ( unsigned char * md,
SHA_CTX * c )

◆ SHA()

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

◆ SHA_Transform()

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

◆ SHA1()

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

◆ SHA1_Transform()

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