Skip to content

File sha1.h

FileList > base > sha1.h

Go to the source code of this file

  • #include "system.h"

Classes

Type Name
struct SHA1Context
struct SHA1Hash

Public Types

Type Name
typedef struct SHA1Context SHA1Context
typedef struct SHA1Hash SHA1Hash

Public Functions

Type Name
int SHA1Compare (void * a, void * b)
int SHA1Compute (const unsigned char * message_array, size_t length, SHA1Hash * hash)
void SHA1Input (SHA1Context * context, const unsigned char * message_array, size_t length)
void SHA1Reset (SHA1Context * context)
int SHA1Result (SHA1Context * context)

Macros

Type Name
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 } }

Public Types Documentation

typedef SHA1Context

typedef struct SHA1Context SHA1Context;

typedef SHA1Hash

typedef struct SHA1Hash SHA1Hash;

Public Functions Documentation

function SHA1Compare

int SHA1Compare (
    void * a,
    void * b
) 

function SHA1Compute

int SHA1Compute (
    const  unsigned  char * message_array,
    size_t length,
    SHA1Hash * hash
) 

function SHA1Input

void SHA1Input (
    SHA1Context * context,
    const  unsigned  char * message_array,
    size_t length
) 

function SHA1Reset

void SHA1Reset (
    SHA1Context * context
) 

function SHA1Result

int SHA1Result (
    SHA1Context * context
) 

Macro Definition Documentation

define SHA1_AS_ARGS

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

define SHA1_HASH_INITIALIZER

#define SHA1_HASH_INITIALIZER `{ { 0, 0, 0, 0, 0 } }`


The documentation for this class was generated from the following file cubrid/src/base/sha1.h