Ruby 1.9.2p136(2010-12-25revision30365)

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

# ext/digest/digest.h

Go to the documentation of this file.

    00001 /************************************************
    00002
    00003   digest.h - header file for ruby digest modules
    00004
    00005   $Author: akr $
    00006   created at: Fri May 25 08:54:56 JST 2001
    00007
    00008
    00009   Copyright (C) 2001-2006 Akinori MUSHA
    00010
    00011   $RoughId: digest.h,v 1.3 2001/07/13 15:38:27 knu Exp $
    00012   $Id: digest.h 25189 2009-10-02 12:04:37Z akr $
    00013
    00014 ************************************************/
    00015
    00016 #include "ruby.h"
    00017
    00018 #define RUBY_DIGEST_API_VERSION 2
    00019
    00020 typedef void (*rb_digest_hash_init_func_t)(void *);
    00021 typedef void (*rb_digest_hash_update_func_t)(void *, unsigned char *, size_t);
    00022 typedef void (*rb_digest_hash_finish_func_t)(void *, unsigned char *);
    00023
    00024 typedef struct {
    00025     int api_version;
    00026     size_t digest_len;
    00027     size_t block_len;
    00028     size_t ctx_size;
    00029     rb_digest_hash_init_func_t init_func;
    00030     rb_digest_hash_update_func_t update_func;
    00031     rb_digest_hash_finish_func_t finish_func;
    00032 } rb_digest_metadata_t;
    00033