libfortuna  1
FortunalibraryfunctionsextractedfromPostgreSQLsource
 All Data Structures Files Functions Variables Typedefs Macros
sha1.h File Reference

Go to the source code of this file.

Data Structures

struct  sha1_ctxt
 

Macros

#define SHA1Init(x)   sha1_init((x))
 
#define SHA1Update(x, y, z)   sha1_loop((x), (y), (z))
 
#define SHA1Final(x, y)   sha1_result((y), (x))
 
#define SHA1_RESULTLEN   (160/8)
 

Typedefs

typedef struct sha1_ctxt SHA1_CTX
 

Functions

void sha1_init (struct sha1_ctxt *)
 
void sha1_pad (struct sha1_ctxt *)
 
void sha1_loop (struct sha1_ctxt *, const uint8 *, size_t)
 
void sha1_result (struct sha1_ctxt *, uint8 *)
 

Macro Definition Documentation

#define SHA1_RESULTLEN   (160/8)
#define SHA1Final (   x,
 
)    sha1_result((y), (x))
#define SHA1Init (   x)    sha1_init((x))
#define SHA1Update (   x,
  y,
 
)    sha1_loop((x), (y), (z))

Typedef Documentation

typedef struct sha1_ctxt SHA1_CTX

Function Documentation

void sha1_init ( struct sha1_ctxt )
void sha1_loop ( struct sha1_ctxt ,
const uint8 ,
size_t   
)
void sha1_pad ( struct sha1_ctxt )
void sha1_result ( struct sha1_ctxt ,
uint8  
)