Ruby
2.1.10p492(2016-04-01revision54464)
|
#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 505 of file digest.c.
References rb_digest_metadata_t::api_version, Data_Get_Struct, id_metadata, NIL_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 98 of file digest.c.
References LONG_MAX, rb_eRuntimeError, rb_raise(), rb_usascii_str_new(), RSTRING_LEN, RSTRING_PTR, and StringValue.
Referenced by rb_digest_class_s_hexdigest(), rb_digest_instance_hexdigest(), rb_digest_instance_hexdigest_bang(), and rb_digest_s_hexencode().
void Init_digest | ( | void | ) |
Definition at line 656 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 539 of file digest.c.
References rb_digest_metadata_t::ctx_size, Data_Wrap_Struct, get_digest_base_metadata(), rb_digest_metadata_t::init_func, rb_cDigest_Base, rb_eNotImpError, rb_raise(), xfree(), and xmalloc.
Referenced by Init_digest().
Definition at line 646 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 561 of file digest.c.
References rb_digest_metadata_t::ctx_size, Data_Get_Struct, get_digest_base_metadata(), rb_check_frozen, and rb_obj_class().
Referenced by Init_digest().
Definition at line 635 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 614 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(), and RSTRING_PTR.
Referenced by Init_digest().
Definition at line 581 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 597 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 492 of file digest.c.
Referenced by Init_digest().
Definition at line 456 of file digest.c.
References argc, argv, id_digest, rb_eArgError, rb_funcall(), rb_obj_alloc(), rb_obj_call_init(), rb_raise(), and StringValue.
Referenced by Init_digest().
Definition at line 485 of file digest.c.
References argc, argv, hexencode_str_new(), id_digest, and rb_funcall2.
Referenced by Init_digest().
Definition at line 432 of file digest.c.
References rb_digest_instance_method_unimpl(), and UNREACHABLE.
Referenced by Init_digest().
Definition at line 241 of file digest.c.
References argc, argv, id_finish, id_reset, id_update, rb_funcall(), rb_obj_clone(), and rb_scan_args().
Referenced by Init_digest(), rb_digest_instance_digest_length(), and rb_digest_instance_equal().
Definition at line 265 of file digest.c.
References id_finish, id_reset, and rb_funcall().
Referenced by Init_digest().
Definition at line 400 of file digest.c.
References INT2NUM, rb_digest_instance_digest(), RSTRING_LEN, and StringValue.
Referenced by Init_digest().
Definition at line 366 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 190 of file digest.c.
References rb_digest_instance_method_unimpl(), and UNREACHABLE.
Referenced by Init_digest().
Definition at line 286 of file digest.c.
References argc, argv, hexencode_str_new(), id_finish, id_reset, id_update, rb_funcall(), rb_obj_clone(), and rb_scan_args().
Referenced by Init_digest(), and rb_digest_instance_inspect().
Definition at line 310 of file digest.c.
References hexencode_str_new(), id_finish, id_reset, and rb_funcall().
Referenced by Init_digest().
Definition at line 337 of file digest.c.
References rb_digest_instance_hexdigest(), rb_obj_classname(), rb_str_buf_append(), rb_str_buf_cat2(), rb_str_buf_new(), and strlen().
Referenced by Init_digest().
Definition at line 418 of file digest.c.
References id_digest_length, and rb_funcall().
Referenced by Init_digest().
Definition at line 152 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 221 of file digest.c.
References id_reset, rb_funcall(), and rb_obj_clone().
Referenced by Init_digest().
Definition at line 206 of file digest.c.
References rb_digest_instance_method_unimpl(), and UNREACHABLE.
Referenced by Init_digest().
Definition at line 325 of file digest.c.
References id_hexdigest, and rb_funcall().
Referenced by Init_digest(), and rb_digest_instance_equal().
Definition at line 170 of file digest.c.
References rb_digest_instance_method_unimpl(), and UNREACHABLE.
Referenced by Init_digest().
Definition at line 137 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_bubblebabble(), and Init_digest().
|
static |
Definition at line 18 of file digest.c.
Referenced by Init_bubblebabble(), and Init_digest().
|
static |
Definition at line 19 of file digest.c.
Referenced by Init_bubblebabble(), Init_digest(), and rb_digest_instance_equal().