6 #if defined(SHA1_USE_OPENSSL) 8 #elif defined(SHA1_USE_COMMONDIGEST) 54 VALUE mDigest, cDigest_Base, cDigest_SHA1;
66 #undef RUBY_UNTYPED_DATA_WARNING 67 #define RUBY_UNTYPED_DATA_WARNING 0 int SHA1_Init(SHA1_CTX *context)
int SHA1_Finish(SHA1_CTX *context, uint8_t digest[20])
#define SHA1_DIGEST_LENGTH
VALUE rb_iv_set(VALUE, const char *, VALUE)
VALUE rb_define_class_under(VALUE outer, const char *name, VALUE super)
Defines a class under the namespace of outer.
VALUE rb_path2class(const char *)
int(* rb_digest_hash_finish_func_t)(void *, unsigned char *)
#define SHA1_BLOCK_LENGTH
#define Data_Wrap_Struct(klass, mark, free, sval)
VALUE rb_require(const char *)
#define RUBY_DIGEST_API_VERSION
void(* rb_digest_hash_update_func_t)(void *, unsigned char *, size_t)
void SHA1_Update(SHA1_CTX *context, const uint8_t *data, size_t len)
int(* rb_digest_hash_init_func_t)(void *)
VALUE rb_define_module(const char *name)