CUBRID Engine  latest
sha1.h File Reference
#include "system.h"
Include dependency graph for sha1.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SHA1Context
 
struct  SHA1Hash
 

Macros

#define SHA1_HASH_INITIALIZER   { { 0, 0, 0, 0, 0 } }
 
#define SHA1_AS_ARGS(sha1)   (sha1)->h[0], (sha1)->h[1], (sha1)->h[2], (sha1)->h[3], (sha1)->h[4]
 

Typedefs

typedef struct SHA1Context SHA1Context
 
typedef struct SHA1Hash SHA1Hash
 

Functions

void SHA1Reset (SHA1Context *)
 
int SHA1Result (SHA1Context *)
 
void SHA1Input (SHA1Context *, const unsigned char *, size_t)
 
int SHA1Compute (const unsigned char *, size_t, SHA1Hash *)
 
int SHA1Compare (void *a, void *b)
 

Macro Definition Documentation

#define SHA1_AS_ARGS (   sha1)    (sha1)->h[0], (sha1)->h[1], (sha1)->h[2], (sha1)->h[3], (sha1)->h[4]
#define SHA1_HASH_INITIALIZER   { { 0, 0, 0, 0, 0 } }

Typedef Documentation

typedef struct SHA1Context SHA1Context
typedef struct SHA1Hash SHA1Hash

Function Documentation

int SHA1Compare ( void *  a,
void *  b 
)

Definition at line 400 of file sha1.c.

References diff, SHA1Hash::h, and i.

Referenced by xcache_compare_key().

Here is the caller graph for this function:

void SHA1Input ( SHA1Context ,
const unsigned char *  ,
size_t   
)
void SHA1Reset ( SHA1Context )
int SHA1Result ( SHA1Context )

Definition at line 109 of file sha1.c.

References SHA1Context::Computed, SHA1Context::Corrupted, and SHA1PadMessage().

Referenced by crypt_encrypt_sha1_printable(), and SHA1Compute().

Here is the caller graph for this function: