Ruby
2.4.2p198(2017-09-14revision59899)
|
#include "ossl.h"
Go to the source code of this file.
Macros | |
#define | GetDigest(obj, ctx) |
#define | SafeGetDigest(obj, ctx) |
Functions | |
static VALUE | ossl_digest_alloc (VALUE klass) |
static void | ossl_digest_free (void *ctx) |
const EVP_MD * | GetDigestPtr (VALUE obj) |
VALUE | ossl_digest_new (const EVP_MD *md) |
VALUE | ossl_digest_update (VALUE, VALUE) |
static VALUE | ossl_digest_initialize (int argc, VALUE *argv, VALUE self) |
static VALUE | ossl_digest_copy (VALUE self, VALUE other) |
static VALUE | ossl_digest_reset (VALUE self) |
static VALUE | ossl_digest_finish (int argc, VALUE *argv, VALUE self) |
static VALUE | ossl_digest_name (VALUE self) |
static VALUE | ossl_digest_size (VALUE self) |
static VALUE | ossl_digest_block_length (VALUE self) |
void | Init_ossl_digest (void) |
Variables | |
VALUE | cDigest |
VALUE | eDigestError |
static const rb_data_type_t | ossl_digest_type |
#define GetDigest | ( | obj, | |
ctx | |||
) |
Definition at line 12 of file ossl_digest.c.
Referenced by ossl_digest_block_length(), ossl_digest_finish(), ossl_digest_name(), ossl_digest_reset(), ossl_digest_size(), and ossl_digest_update().
#define SafeGetDigest | ( | obj, | |
ctx | |||
) |
Definition at line 18 of file ossl_digest.c.
Referenced by GetDigestPtr(), and ossl_digest_copy().
Definition at line 49 of file ossl_digest.c.
References name, NULL, ossl_raise(), PRIsVALUE, rb_eRuntimeError, RB_TYPE_P, SafeGetDigest, StringValueCStr, and T_STRING.
Referenced by ossl_cipher_pkcs5_keyivgen(), ossl_digest_initialize(), ossl_hmac_initialize(), ossl_hmac_s_digest(), ossl_hmac_s_hexdigest(), ossl_ocspbres_sign(), ossl_ocspcid_initialize(), ossl_ocspreq_sign(), ossl_pkcs7si_initialize(), ossl_pkey_sign(), ossl_pkey_verify(), ossl_spki_sign(), ossl_x509_sign(), ossl_x509crl_sign(), and ossl_x509req_sign().
void Init_ossl_digest | ( | void | ) |
Definition at line 318 of file ossl_digest.c.
References cDigest, eDigestError, eOSSLError, mOSSL, ossl_digest_alloc(), ossl_digest_block_length(), ossl_digest_copy(), ossl_digest_finish(), ossl_digest_initialize(), ossl_digest_name(), ossl_digest_reset(), ossl_digest_size(), ossl_digest_update(), rb_define_alias(), rb_define_alloc_func(), rb_define_class_under(), rb_define_copy_func, rb_define_method(), rb_define_module(), rb_define_private_method(), rb_eStandardError, rb_path2class(), and rb_require().
Referenced by Init_openssl().
Definition at line 98 of file ossl_digest.c.
References ossl_digest_update(), and TypedData_Wrap_Struct.
Referenced by Init_ossl_digest(), and ossl_digest_new().
Definition at line 305 of file ossl_digest.c.
References GetDigest, and INT2NUM.
Referenced by Init_ossl_digest().
Definition at line 148 of file ossl_digest.c.
References eDigestError, EVP_MD_CTX_new, NULL, ossl_raise(), rb_check_frozen, RTYPEDDATA_DATA, SafeGetDigest, and TypedData_Get_Struct.
Referenced by Init_ossl_digest().
Definition at line 225 of file ossl_digest.c.
References eDigestError, GetDigest, NIL_P, NULL, ossl_raise(), rb_scan_args(), rb_str_new(), rb_str_resize(), RSTRING_PTR, and StringValue.
Referenced by Init_ossl_digest().
|
static |
Definition at line 32 of file ossl_digest.c.
Definition at line 123 of file ossl_digest.c.
References eDigestError, EVP_MD_CTX_new, GetDigestPtr(), NIL_P, NULL, ossl_digest_update(), ossl_raise(), rb_scan_args(), RTYPEDDATA_DATA, StringValue, and TypedData_Get_Struct.
Referenced by Init_ossl_digest().
Definition at line 260 of file ossl_digest.c.
References GetDigest, and rb_str_new2.
Referenced by Init_ossl_digest().
Definition at line 77 of file ossl_digest.c.
References cDigest, eDigestError, EVP_MD_CTX_new, NULL, ossl_digest_alloc(), ossl_raise(), and RTYPEDDATA_DATA.
Referenced by ossl_engine_get_digest().
Definition at line 178 of file ossl_digest.c.
References eDigestError, GetDigest, NULL, and ossl_raise().
Referenced by Init_ossl_digest().
Definition at line 282 of file ossl_digest.c.
References GetDigest, and INT2NUM.
Referenced by Init_ossl_digest().
Definition at line 206 of file ossl_digest.c.
References eDigestError, GetDigest, ossl_raise(), RSTRING_LEN, RSTRING_PTR, and StringValue.
Referenced by Init_ossl_digest(), ossl_digest_alloc(), and ossl_digest_initialize().
VALUE cDigest |
Definition at line 26 of file ossl_digest.c.
Referenced by Init_ossl_digest(), and ossl_digest_new().
VALUE eDigestError |
Definition at line 27 of file ossl_digest.c.
Referenced by Init_ossl_digest(), ossl_digest_copy(), ossl_digest_finish(), ossl_digest_initialize(), ossl_digest_new(), ossl_digest_reset(), and ossl_digest_update().
|
static |
Definition at line 37 of file ossl_digest.c.