/tools/Ruby/lib/ruby/1.8/i386-mingw32/digest.h

http://github.com/agross/netopenspace · C Header · 32 lines · 14 code · 4 blank · 14 comment · 0 complexity · 1f51bd7a9ad10c35f63c4f2590d0a366 MD5 · raw file

  1. /************************************************
  2. digest.h - header file for ruby digest modules
  3. $Author: shyouhei $
  4. created at: Fri May 25 08:54:56 JST 2001
  5. Copyright (C) 2001-2006 Akinori MUSHA
  6. $RoughId: digest.h,v 1.3 2001/07/13 15:38:27 knu Exp $
  7. $Id: digest.h 11708 2007-02-12 23:01:19Z shyouhei $
  8. ************************************************/
  9. #include "ruby.h"
  10. #define RUBY_DIGEST_API_VERSION 2
  11. typedef void (*rb_digest_hash_init_func_t)(void *);
  12. typedef void (*rb_digest_hash_update_func_t)(void *, unsigned char *, size_t);
  13. typedef void (*rb_digest_hash_finish_func_t)(void *, unsigned char *);
  14. typedef struct {
  15. int api_version;
  16. size_t digest_len;
  17. size_t block_len;
  18. size_t ctx_size;
  19. rb_digest_hash_init_func_t init_func;
  20. rb_digest_hash_update_func_t update_func;
  21. rb_digest_hash_finish_func_t finish_func;
  22. } rb_digest_metadata_t;