Main Page   Compound List   File List   Compound Members   File Members  

hashcom.h File Reference

#include <string.h>
#include "mainDefs.h"

Include dependency graph for hashcom.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define SHA1_BASIC_API   0
#define SHA2_BASIC_API   0
#define RIPEMD160_BASIC_API   0
#define crypto_hash_name(HASH_T)
#define crypto_hash_name_rev(STR)

Enumerations

enum  hash_t {
  CRYPTO_HASH_NONE = 0,
  CRYPTO_HASH_MD5,
  CRYPTO_HASH_SHA1,
  CRYPTO_HASH_RIPEMD160,
  CRYPTO_HASH_SHA2,
  CRYPTO_HASH_COUNT
}

Functions

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 void* crypto_hash_name_arr [CRYPTO_HASH_COUNT][2]
const char hashcom_PADDING [128]


Define Documentation

#define RIPEMD160_BASIC_API   0
 

#define SHA1_BASIC_API   0
 

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 SHA2_BASIC_API   0
 

#define crypto_hash_name( HASH_T )
 

Value:

  crypto_name(crypto_hash_name_arr, CRYPTO_HASH_COUNT, HASH_T)

#define crypto_hash_name_rev( STR )
 

Value:

  ((hash_t)crypto_name_rev(crypto_hash_name_arr, CRYPTO_HASH_COUNT, STR))


Enumeration Type Documentation

enum hash_t
 

Enumeration values:
CRYPTO_HASH_NONE  
CRYPTO_HASH_MD5  
CRYPTO_HASH_SHA1  
CRYPTO_HASH_RIPEMD160  
CRYPTO_HASH_SHA2  
CRYPTO_HASH_COUNT  


Function Documentation

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 void* crypto_hash_name_arr[CRYPTO_HASH_COUNT][2]
 

const char hashcom_PADDING[128]
 



Confidential