Skip to content

File sha1.c

FileList > base > sha1.c

Go to the source code of this file

  • #include "sha1.h"
  • #include "error_manager.h"
  • #include <assert.h>
  • #include "memory_wrapper.hpp"

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 SHA1PadMessage (SHA1Context * context)
void SHA1ProcessMessageBlock (SHA1Context * context)
void SHA1Reset (SHA1Context * context)
int SHA1Result (SHA1Context * context)

Macros

Type Name
define SHA1CircularShift (bits, word) /* multi line expression */

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 SHA1PadMessage

void SHA1PadMessage (
    SHA1Context * context
) 

function SHA1ProcessMessageBlock

void SHA1ProcessMessageBlock (
    SHA1Context * context
) 

function SHA1Reset

void SHA1Reset (
    SHA1Context * context
) 

function SHA1Result

int SHA1Result (
    SHA1Context * context
) 

Macro Definition Documentation

define SHA1CircularShift

#define SHA1CircularShift (
    bits,
    word
) `/* multi line expression */`


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