ext/digest/digest.h


DEFINITIONS

This source file includes following functions.


   1  /************************************************
   2  
   3    digest.c -
   4  
   5    $Author: knu $
   6    created at: Fri May 25 08:54:56 JST 2001
   7  
   8  
   9    Copyright (C) 2001 Akinori MUSHA
  10  
  11    $RoughId: digest.h,v 1.3 2001/07/13 15:38:27 knu Exp $
  12    $Id: digest.h,v 1.1 2001/07/13 20:06:13 knu Exp $
  13  
  14  ************************************************/
  15  
  16  #include "ruby.h"
  17  
  18  typedef void (*hash_init_func_t) _((void *));
  19  typedef void (*hash_update_func_t) _((void *, unsigned char *, size_t));
  20  typedef void (*hash_end_func_t) _((void *, unsigned char *));
  21  typedef void (*hash_final_func_t) _((unsigned char *, void *));
  22  typedef int (*hash_equal_func_t) _((void *, void *));
  23  
  24  typedef struct {
  25      size_t digest_len;
  26      size_t ctx_size;
  27      hash_init_func_t init_func;
  28      hash_update_func_t update_func;
  29      hash_end_func_t end_func;
  30      hash_final_func_t final_func;
  31      hash_equal_func_t equal_func;
  32  } algo_t;