Ruby
2.0.0p594(2014-10-27revision48167)
|
#include "digest.h"
Go to the source code of this file.
Variables | |
static VALUE | rb_mDigest |
static VALUE | rb_mDigest_Instance |
static VALUE | rb_cDigest_Class |
static VALUE | rb_cDigest_Base |
static ID | id_reset |
static ID | id_update |
static ID | id_finish |
static ID | id_digest |
static ID | id_hexdigest |
static ID | id_digest_length |
static ID | id_metadata |
|
static |
Definition at line 489 of file digest.c.
References rb_digest_metadata_t::api_version, Data_Get_Struct, id_metadata, NIL_P(), obj, p, rb_class_superclass(), rb_eRuntimeError, rb_ivar_defined(), rb_ivar_get(), and rb_raise().
Referenced by rb_digest_base_alloc(), rb_digest_base_block_length(), rb_digest_base_copy(), rb_digest_base_digest_length(), rb_digest_base_finish(), rb_digest_base_reset(), and rb_digest_base_update().
Definition at line 82 of file digest.c.
References i, LONG_MAX, p, rb_eRuntimeError, rb_raise(), rb_usascii_str_new(), RSTRING_LEN, RSTRING_PTR, str, and StringValue.
Referenced by rb_digest_class_s_hexdigest(), rb_digest_instance_hexdigest(), rb_digest_instance_hexdigest_bang(), and rb_digest_s_hexencode().
Definition at line 640 of file digest.c.
References id_digest, id_digest_length, id_finish, id_hexdigest, id_metadata, id_reset, id_update, rb_cDigest_Base, rb_cDigest_Class, rb_cObject, rb_define_alloc_func(), rb_define_class_under(), rb_define_method(), rb_define_module(), rb_define_module_function(), rb_define_module_under(), rb_define_private_method(), rb_define_singleton_method(), rb_digest_base_alloc(), rb_digest_base_block_length(), rb_digest_base_copy(), rb_digest_base_digest_length(), rb_digest_base_finish(), rb_digest_base_reset(), rb_digest_base_update(), rb_digest_class_init(), rb_digest_class_s_digest(), rb_digest_class_s_hexdigest(), rb_digest_instance_block_length(), rb_digest_instance_digest(), rb_digest_instance_digest_bang(), rb_digest_instance_digest_length(), rb_digest_instance_equal(), rb_digest_instance_finish(), rb_digest_instance_hexdigest(), rb_digest_instance_hexdigest_bang(), rb_digest_instance_inspect(), rb_digest_instance_length(), rb_digest_instance_new(), rb_digest_instance_reset(), rb_digest_instance_to_s(), rb_digest_instance_update(), rb_digest_s_hexencode(), rb_include_module(), rb_intern, rb_mDigest, and rb_mDigest_Instance.
RUBY_EXTERN void Init_digest_base | ( | void | ) |
NORETURN | ( | static void | rb_digest_instance_method_unimplVALUE self, const char *method | ) |
Definition at line 523 of file digest.c.
References rb_digest_metadata_t::ctx_size, Data_Wrap_Struct(), get_digest_base_metadata(), rb_digest_metadata_t::init_func, obj, rb_cDigest_Base, rb_eNotImpError, rb_raise(), xfree, and xmalloc.
Referenced by Init_digest().
Definition at line 630 of file digest.c.
References rb_digest_metadata_t::block_len, get_digest_base_metadata(), INT2NUM, and rb_obj_class().
Referenced by Init_digest().
Definition at line 545 of file digest.c.
References rb_digest_metadata_t::ctx_size, Data_Get_Struct, get_digest_base_metadata(), memcpy(), rb_check_frozen, and rb_obj_class().
Referenced by Init_digest().
Definition at line 619 of file digest.c.
References rb_digest_metadata_t::digest_len, get_digest_base_metadata(), INT2NUM, and rb_obj_class().
Referenced by Init_digest().
Definition at line 598 of file digest.c.
References Data_Get_Struct, rb_digest_metadata_t::digest_len, rb_digest_metadata_t::finish_func, get_digest_base_metadata(), rb_digest_metadata_t::init_func, rb_obj_class(), rb_str_new(), RSTRING_PTR, and str.
Referenced by Init_digest().
Definition at line 565 of file digest.c.
References Data_Get_Struct, get_digest_base_metadata(), rb_digest_metadata_t::init_func, and rb_obj_class().
Referenced by Init_digest().
Definition at line 581 of file digest.c.
References Data_Get_Struct, get_digest_base_metadata(), rb_obj_class(), RSTRING_LEN, RSTRING_PTR, StringValue, and rb_digest_metadata_t::update_func.
Referenced by Init_digest().
Definition at line 476 of file digest.c.
Referenced by Init_digest().
Definition at line 440 of file digest.c.
References id_digest, obj, rb_eArgError, rb_funcall(), rb_obj_alloc(), rb_obj_call_init(), rb_raise(), str, and StringValue.
Referenced by Init_digest().
Definition at line 469 of file digest.c.
References hexencode_str_new(), id_digest, and rb_funcall2().
Referenced by Init_digest().
Definition at line 416 of file digest.c.
References rb_digest_instance_method_unimpl(), and UNREACHABLE.
Referenced by Init_digest().
Definition at line 225 of file digest.c.
References id_finish, id_reset, id_update, rb_funcall(), rb_obj_clone(), rb_scan_args(), str, and value.
Referenced by Init_digest(), rb_digest_instance_digest_length(), and rb_digest_instance_equal().
Definition at line 249 of file digest.c.
References id_finish, id_reset, rb_funcall(), and value.
Referenced by Init_digest().
Definition at line 384 of file digest.c.
References INT2NUM, rb_digest_instance_digest(), RSTRING_LEN, and StringValue.
Referenced by Init_digest().
Definition at line 350 of file digest.c.
References NIL_P(), Qfalse, Qtrue, rb_check_string_type(), rb_digest_instance_digest(), rb_digest_instance_to_s(), rb_mDigest_Instance, rb_obj_is_kind_of(), rb_str_cmp(), RSTRING_LEN, and StringValue.
Referenced by Init_digest().
Definition at line 174 of file digest.c.
References rb_digest_instance_method_unimpl(), and UNREACHABLE.
Referenced by Init_digest().
Definition at line 270 of file digest.c.
References hexencode_str_new(), id_finish, id_reset, id_update, rb_funcall(), rb_obj_clone(), rb_scan_args(), str, and value.
Referenced by Init_digest(), and rb_digest_instance_inspect().
Definition at line 294 of file digest.c.
References hexencode_str_new(), id_finish, id_reset, rb_funcall(), and value.
Referenced by Init_digest().
Definition at line 321 of file digest.c.
References rb_digest_instance_hexdigest(), rb_obj_classname(), rb_str_buf_append(), rb_str_buf_cat2(), rb_str_buf_new(), str, and strlen().
Referenced by Init_digest().
Definition at line 402 of file digest.c.
References id_digest_length, and rb_funcall().
Referenced by Init_digest().
Definition at line 136 of file digest.c.
References rb_eRuntimeError, rb_obj_classname(), and rb_raise().
Referenced by rb_digest_instance_block_length(), rb_digest_instance_finish(), rb_digest_instance_reset(), and rb_digest_instance_update().
Definition at line 205 of file digest.c.
References id_reset, rb_funcall(), and rb_obj_clone().
Referenced by Init_digest().
Definition at line 190 of file digest.c.
References rb_digest_instance_method_unimpl(), and UNREACHABLE.
Referenced by Init_digest().
Definition at line 309 of file digest.c.
References id_hexdigest, and rb_funcall().
Referenced by Init_digest(), and rb_digest_instance_equal().
Definition at line 154 of file digest.c.
References rb_digest_instance_method_unimpl(), and UNREACHABLE.
Referenced by Init_digest().
Definition at line 121 of file digest.c.
References hexencode_str_new().
Referenced by Init_digest().
|
static |
Definition at line 23 of file digest.c.
Referenced by Init_digest(), rb_digest_class_s_digest(), and rb_digest_class_s_hexdigest().
|
static |
Definition at line 23 of file digest.c.
Referenced by Init_digest(), and rb_digest_instance_length().
|
static |
Definition at line 23 of file digest.c.
Referenced by Init_digest(), rb_digest_instance_digest(), rb_digest_instance_digest_bang(), rb_digest_instance_hexdigest(), and rb_digest_instance_hexdigest_bang().
|
static |
Definition at line 23 of file digest.c.
Referenced by Init_digest(), and rb_digest_instance_to_s().
|
static |
Definition at line 24 of file digest.c.
Referenced by get_digest_base_metadata(), Init_digest(), and Init_sha2().
|
static |
Definition at line 23 of file digest.c.
Referenced by Init_digest(), rb_digest_instance_digest(), rb_digest_instance_digest_bang(), rb_digest_instance_hexdigest(), rb_digest_instance_hexdigest_bang(), and rb_digest_instance_new().
|
static |
Definition at line 23 of file digest.c.
Referenced by Init_digest(), rb_digest_instance_digest(), and rb_digest_instance_hexdigest().
|
static |
Definition at line 21 of file digest.c.
Referenced by Init_digest(), and rb_digest_base_alloc().
|
static |
Definition at line 20 of file digest.c.
Referenced by Init_digest().
|
static |
Definition at line 18 of file digest.c.
Referenced by Init_digest().
|
static |
Definition at line 19 of file digest.c.
Referenced by Init_digest(), and rb_digest_instance_equal().