DEFINITIONS
This source file includes following functions.
   1  
   2  
   3  
   4  
   5  
   6  
   7  
   8  
   9  
  10  
  11  
  12  
  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;