key.c File Reference

#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <openssl/evp.h>
#include "key.h"
#include "log.h"

Functions

void key_print (Key k)
void key_to_str (char *str, Key k)
void str_to_key (char *str, Key *k)
void key_assign (Key *k1, Key k2)
void key_assign_ui (Key *k, unsigned long ul)
int key_equal (Key k1, Key k2)
int key_equal_ui (Key k, unsigned long ul)
int key_comp (Key k1, Key k2)
void key_add (Key *result, Key op1, Key op2)
void key_sub (void *logs, Key *result, Key op1, Key op2)
char * sha1_keygen (char *key, char *digest, int size)
void key_makehash (void *logs, Key *hashed, char *s)
void key_init ()
void key_distance (void *logs, Key *diff, Key k1, Key k2)
int key_between (void *logs, Key test, Key left, Key right)
void key_midpoint (void *logs, Key *mid, Key key)
int key_index (void *logs, Key mykey, Key k)

Function Documentation

void key_add (  Key *  result,
Key  op1,
Key  op2
) 
 

void key_assign (  Key *  k1,
Key  k2
) 
 

void key_assign_ui (  Key *  k,
unsigned long  ul
) 
 

int key_between (  void *  logs,
Key  test,
Key  left,
Key  right
) 
 

int key_comp (  Key  k1,
Key  k2
) 
 

void key_distance (  void *  logs,
Key *  diff,
Key  k1,
Key  k2
) 
 

int key_equal (  Key  k1,
Key  k2
) 
 

int key_equal_ui (  Key  k,
unsigned long  ul
) 
 

int key_index (  void *  logs,
Key  mykey,
Key  k
) 
 

void key_init (   ) 
 

void key_makehash (  void *  logs,
Key *  hashed,
char *  s
) 
 

void key_midpoint (  void *  logs,
Key *  mid,
Key  key
) 
 

void key_print (  Key  k  ) 
 

void key_sub (  void *  logs,
Key *  result,
Key  op1,
Key  op2
) 
 

void key_to_str (  char *  str,
Key  k
) 
 

char* sha1_keygen (  char *  key,
char *  digest,
int  size
) 
 

void str_to_key (  char *  str,
Key *  k
) 
 


Generated on Thu Feb 16 21:42:40 2006 for Chimera by  doxygen 1.4.5