GRAYBYTE WORDPRESS FILE MANAGER5804

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/ruby34/include/ruby/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/ruby34/include/ruby//digest.h
/************************************************

  digest.h - header file for ruby digest modules

  $Author$
  created at: Fri May 25 08:54:56 JST 2001


  Copyright (C) 2001-2006 Akinori MUSHA

  $RoughId: digest.h,v 1.3 2001/07/13 15:38:27 knu Exp $
  $Id$

************************************************/

#include "ruby.h"

#define RUBY_DIGEST_API_VERSION	3

typedef int (*rb_digest_hash_init_func_t)(void *);
typedef void (*rb_digest_hash_update_func_t)(void *, unsigned char *, size_t);
typedef int (*rb_digest_hash_finish_func_t)(void *, unsigned char *);

typedef struct {
    int api_version;
    size_t digest_len;
    size_t block_len;
    size_t ctx_size;
    rb_digest_hash_init_func_t init_func;
    rb_digest_hash_update_func_t update_func;
    rb_digest_hash_finish_func_t finish_func;
} rb_digest_metadata_t;

#define DEFINE_UPDATE_FUNC_FOR_UINT(name) \
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); \
    } \
    /* Since size <= stride, size should fit into an unsigned int */ \
    if (size > 0) name##_Update(ctx, ptr, (unsigned int)size); \
}

#define DEFINE_FINISH_FUNC_FROM_FINAL(name) \
int \
rb_digest_##name##_finish(void *ctx, unsigned char *ptr) \
{ \
    return name##_Final(ptr, ctx); \
}

static inline VALUE
rb_digest_namespace(void)
{
    rb_require("digest");
    return rb_path2class("Digest");
}

static inline ID
rb_id_metadata(void)
{
    return rb_intern_const("metadata");
}

#if !defined(HAVE_RB_EXT_RESOLVE_SYMBOL)
#elif !defined(RUBY_UNTYPED_DATA_WARNING)
# error RUBY_UNTYPED_DATA_WARNING is not defined
#elif RUBY_UNTYPED_DATA_WARNING
/* rb_ext_resolve_symbol() has been defined since Ruby 3.3, but digest
 * bundled with 3.3 didn't use it. */
# define DIGEST_USE_RB_EXT_RESOLVE_SYMBOL 1
#endif

static inline VALUE
rb_digest_make_metadata(const rb_digest_metadata_t *meta)
{
#if defined(EXTSTATIC) && EXTSTATIC
    /* The extension is built as a static library, so safe to refer to
     * rb_digest_wrap_metadata directly. */
    extern VALUE rb_digest_wrap_metadata(const rb_digest_metadata_t *meta);
    return rb_digest_wrap_metadata(meta);
#else
    /* The extension is built as a shared library, so we can't refer
     * to rb_digest_wrap_metadata directly. */
# ifdef DIGEST_USE_RB_EXT_RESOLVE_SYMBOL
    /* If rb_ext_resolve_symbol() is available, use it to get the address of
     * rb_digest_wrap_metadata. */
    typedef VALUE (*wrapper_func_type)(const rb_digest_metadata_t *meta);
    static wrapper_func_type wrapper;
    if (!wrapper) {
        wrapper = (wrapper_func_type)(uintptr_t)
            rb_ext_resolve_symbol("digest.so", "rb_digest_wrap_metadata");
        if (!wrapper) rb_raise(rb_eLoadError, "rb_digest_wrap_metadata not found");
    }
    return wrapper(meta);
# else
    /* If rb_ext_resolve_symbol() is not available, keep using untyped
     * data. */
# undef RUBY_UNTYPED_DATA_WARNING
# define RUBY_UNTYPED_DATA_WARNING 0
    return rb_obj_freeze(Data_Wrap_Struct(0, 0, 0, (void *)meta));
# endif
#endif
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
January 01 1970 00:00:00
root / root
0
backward
--
June 26 2025 08:38:37
root / linksafe
0755
fiber
--
June 26 2025 08:38:37
root / linksafe
0755
internal
--
June 26 2025 08:38:37
root / linksafe
0755
io
--
June 26 2025 08:38:37
root / linksafe
0755
assert.h
10.247 KB
May 29 2025 13:39:39
root / linksafe
0644
atomic.h
27.623 KB
May 29 2025 13:39:39
root / linksafe
0644
backward.h
1.115 KB
May 29 2025 13:39:39
root / linksafe
0644
config.h
14.274 KB
May 29 2025 13:39:39
root / linksafe
0644
debug.h
29.284 KB
May 29 2025 13:39:39
root / linksafe
0644
defines.h
2.756 KB
May 29 2025 13:39:39
root / linksafe
0644
digest.h
3.101 KB
May 29 2025 13:39:39
root / linksafe
0644
encoding.h
1.281 KB
May 29 2025 13:39:39
root / linksafe
0644
intern.h
2.302 KB
May 29 2025 13:39:39
root / linksafe
0644
io.h
36.829 KB
May 29 2025 13:39:38
root / linksafe
0644
memory_view.h
10.779 KB
May 29 2025 13:39:39
root / linksafe
0644
missing.h
6.673 KB
May 29 2025 13:39:39
root / linksafe
0644
onigmo.h
43.897 KB
May 29 2025 13:39:39
root / linksafe
0644
oniguruma.h
0.256 KB
May 29 2025 13:39:39
root / linksafe
0644
ractor.h
8.713 KB
May 29 2025 13:39:39
root / linksafe
0644
random.h
11.506 KB
May 29 2025 13:39:39
root / linksafe
0644
re.h
6.643 KB
May 29 2025 13:39:38
root / linksafe
0644
regex.h
0.987 KB
May 29 2025 13:39:39
root / linksafe
0644
ruby.h
14.742 KB
May 29 2025 13:39:39
root / linksafe
0644
st.h
7.478 KB
May 29 2025 13:39:39
root / linksafe
0644
subst.h
0.787 KB
May 29 2025 13:39:39
root / linksafe
0644
thread.h
12.286 KB
May 29 2025 13:39:39
root / linksafe
0644
thread_native.h
6.674 KB
May 29 2025 13:39:39
root / linksafe
0644
util.h
8.571 KB
May 29 2025 13:39:39
root / linksafe
0644
version.h
4.761 KB
May 29 2025 13:39:39
root / linksafe
0644
vm.h
2.25 KB
May 29 2025 13:39:39
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF