Ruby
2.4.2p198(2017-09-14revision59899)
|
#include "digest.h"
Go to the source code of this file.
Macros | |
#define | RUBY_UNTYPED_DATA_WARNING 0 |
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 const rb_data_type_t | digest_type |
#define RUBY_UNTYPED_DATA_WARNING 0 |
|
inlinestatic |
Definition at line 584 of file digest.c.
References rb_digest_metadata_t::init_func, rb_eRuntimeError, and rb_raise().
Referenced by rb_digest_base_alloc(), rb_digest_base_finish(), and rb_digest_base_reset().
|
static |
Definition at line 541 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_GC_GUARD, 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 729 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 | ) |
Referenced by rb_digest_s_hexencode().
Definition at line 592 of file digest.c.
References algo_init(), rb_digest_metadata_t::ctx_size, get_digest_base_metadata(), rb_cDigest_Base, rb_data_typed_object_zalloc(), rb_eNotImpError, rb_raise(), and RTYPEDDATA_DATA.
Referenced by Init_digest().
Definition at line 719 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 613 of file digest.c.
References rb_digest_metadata_t::ctx_size, get_digest_base_metadata(), memcpy, rb_check_frozen, rb_eTypeError, rb_obj_class(), rb_raise(), and TypedData_Get_Struct.
Referenced by Init_digest().
Definition at line 704 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 679 of file digest.c.
References algo_init(), rb_digest_metadata_t::digest_len, rb_digest_metadata_t::finish_func, get_digest_base_metadata(), rb_obj_class(), rb_str_new(), RSTRING_PTR, and TypedData_Get_Struct.
Referenced by Init_digest().
Definition at line 639 of file digest.c.
References algo_init(), get_digest_base_metadata(), rb_obj_class(), and TypedData_Get_Struct.
Referenced by Init_digest().
Definition at line 661 of file digest.c.
References get_digest_base_metadata(), RB_GC_GUARD, rb_obj_class(), RSTRING_LEN, RSTRING_PTR, StringValue, TypedData_Get_Struct, and rb_digest_metadata_t::update_func.
Referenced by Init_digest().
Definition at line 494 of file digest.c.
Referenced by Init_digest().
Definition at line 458 of file digest.c.
References id_digest, rb_eArgError, rb_funcall(), rb_obj_alloc(), rb_obj_call_init(), rb_raise(), and StringValue.
Referenced by Init_digest().
Definition at line 487 of file digest.c.
References hexencode_str_new(), id_digest, and rb_funcallv.
Referenced by Init_digest().
Definition at line 434 of file digest.c.
References rb_digest_instance_method_unimpl(), and UNREACHABLE.
Referenced by Init_digest().
Definition at line 243 of file digest.c.
References 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 267 of file digest.c.
References id_finish, id_reset, and rb_funcall().
Referenced by Init_digest().
Definition at line 402 of file digest.c.
References INT2NUM, rb_digest_instance_digest(), RSTRING_LEN, and StringValue.
Referenced by Init_digest().
Definition at line 368 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 192 of file digest.c.
References rb_digest_instance_method_unimpl(), and UNREACHABLE.
Referenced by Init_digest().
Definition at line 288 of file digest.c.
References 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 312 of file digest.c.
References hexencode_str_new(), id_finish, id_reset, and rb_funcall().
Referenced by Init_digest().
Definition at line 339 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 420 of file digest.c.
References id_digest_length, and rb_funcall().
Referenced by Init_digest().
Definition at line 154 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(), rb_digest_instance_update(), and rb_digest_s_hexencode().
Definition at line 223 of file digest.c.
References id_reset, rb_funcall(), and rb_obj_clone().
Referenced by Init_digest().
Definition at line 208 of file digest.c.
References rb_digest_instance_method_unimpl(), and UNREACHABLE.
Referenced by Init_digest().
Definition at line 327 of file digest.c.
References id_hexdigest, and rb_funcall().
Referenced by Init_digest(), and rb_digest_instance_equal().
Definition at line 172 of file digest.c.
References rb_digest_instance_method_unimpl(), and UNREACHABLE.
Referenced by Init_digest().
Definition at line 139 of file digest.c.
References hexencode_str_new(), NORETURN(), and rb_digest_instance_method_unimpl().
Referenced by Init_digest().
|
static |
|
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().