Main Page   Compound List   File List   Compound Members   File Members  

hasher_test.c File Reference

#include <stdio.h>
#include "hasher.h"

Include dependency graph for hasher_test.c:

Include dependency graph

Defines

#define COMMENT
#define HANDLE_ERROR(X)
#define TESTTHIS   "abc"

Functions

void test_hash (const char *h)
int main ()

Variables

const char* algos []

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 HANDLE_ERROR( X )
 

Value:

  {\
  if ((status = X) != HASHER_OK) {\
    printf("Error occured: %u %s\n", status, hasher_ret_msg(status));\
    return;\
  }\
}

#define TESTTHIS   "abc"
 


Function Documentation

int main ( )
 

void test_hash ( const char * h )
 


Variable Documentation

const char* algos[]
 

Initial value:

 {
"none algo whatsoever",
"md5",
"sha-1",
"sha-2",
"ripemd-160"
}


Confidential