Go to the source code of this file.
◆ DEFINE_FINISH_FUNC_FROM_FINAL
#define DEFINE_FINISH_FUNC_FROM_FINAL |
( |
|
name | ) |
|
Value:int \
rb_digest_##
name##_finish(
void *ctx,
unsigned char *ptr) \
{ \
return
name##_Final(ptr, ctx); \
}
Definition at line 46 of file digest.h.
◆ DEFINE_UPDATE_FUNC_FOR_UINT
#define DEFINE_UPDATE_FUNC_FOR_UINT |
( |
|
name | ) |
|
Value:void \
rb_digest_##
name##_update(
void *ctx,
unsigned char *ptr,
size_t size) \
{ \
const unsigned int stride = 16384; \
\
for (;
size > stride;
size -= stride, ptr += stride) { \
name##_Update(ctx, ptr, stride); \
} \
if (
size > 0)
name##_Update(ctx, ptr, size); \}
Definition at line 34 of file digest.h.
◆ RUBY_DIGEST_API_VERSION
#define RUBY_DIGEST_API_VERSION 3 |
◆ rb_digest_hash_finish_func_t
typedef int(* rb_digest_hash_finish_func_t) (void *, unsigned char *) |
◆ rb_digest_hash_init_func_t
typedef int(* rb_digest_hash_init_func_t) (void *) |
◆ rb_digest_hash_update_func_t
typedef void(* rb_digest_hash_update_func_t) (void *, unsigned char *, size_t) |