Main Page   Compound List   File List   Compound Members   File Members  

hashcom.c File Reference

#include "hashcom.h"

Include dependency graph for hashcom.c:

Include dependency graph

Defines

#define COMMENT
#define ckstring_case_tab(ii)
#define strncasecmp(AA, BB, LL)

Functions

int ckstrncasecmp (const char *a, const char *b, int k)
const char* crypto_name (const void *tab[][2], int count, int v)
unsigned int crypto_name_rev (const void *tab[][2], int count, const char *str)

Variables

const char ckstring_case_tab_ [256]
const char hashcom_PADDING [128]
const void* crypto_hash_name_arr [CRYPTO_HASH_COUNT][2]

Define Documentation

#define COMMENT
 

Value:

A contribution to the open-source movement. Jean-Luc Cooke <jlcooke@certainkey.com> CertainKey Inc. Ottawa Ontario Canada

Created: July 20th, 2001

The following program code is released under the GPL license http://www.gnu.org/copyleft/gpl.html

#define ckstring_case_tab( ii )
 

Value:

  ckstring_case_tab_[(ii) & 0xff]

#define strncasecmp( AA, BB, LL )
 

Value:

  ckstrncasecmp(AA, BB, LL)


Function Documentation

int ckstrncasecmp ( const char * a,
const char * b,
int k )
 

const char* crypto_name ( const void * tab[][2],
int count,
int v )
 

unsigned int crypto_name_rev ( const void * tab[][2],
int count,
const char * str )
 


Variable Documentation

const char ckstring_case_tab_[256]
 

const void* crypto_hash_name_arr[CRYPTO_HASH_COUNT][2]
 

Initial value:

 {
{(void*)CRYPTO_HASH_NONE, "None"},
{(void*)CRYPTO_HASH_MD5, "MD5"},
{(void*)CRYPTO_HASH_SHA1, "SHA-1"},
{(void*)CRYPTO_HASH_RIPEMD160, "RIPEMD-160"},
{(void*)CRYPTO_HASH_SHA2, "SHA-2"},
}

const char hashcom_PADDING[128]
 

Initial value:

 {
  (char)0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  0,          0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  0,          0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  0,          0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  0,          0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  0,          0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  0,          0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  0,          0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
}


Confidential