7 static VALUE mKDF, eKDF;
37 VALUE pass, salt, opts, kwargs[4], str;
38 static ID kwargs_ids[4];
67 #if defined(HAVE_EVP_PBE_SCRYPT) 103 VALUE pass, salt, opts, kwargs[5], str;
104 static ID kwargs_ids[5];
108 if (!kwargs_ids[0]) {
120 N = NUM2UINT64T(kwargs[1]);
121 r = NUM2UINT64T(kwargs[2]);
122 p = NUM2UINT64T(kwargs[3]);
134 N, r, p, maxmem, (
unsigned char *)
RSTRING_PTR(str), len))
218 #if defined(HAVE_EVP_PBE_SCRYPT)
int rb_get_kwargs(VALUE keyword_hash, const ID *table, int required, int optional, VALUE *values)
VALUE rb_define_class_under(VALUE outer, const char *name, VALUE super)
Defines a class under the namespace of outer.
unsigned long long uint64_t
void rb_define_module_function(VALUE module, const char *name, VALUE(*func)(ANYARGS), int argc)
Defines a module function for module.
const EVP_MD * ossl_evp_get_digestbyname(VALUE obj)
int rb_scan_args(int argc, const VALUE *argv, const char *fmt,...)
register unsigned int len
VALUE rb_define_module_under(VALUE outer, const char *name)
void ossl_raise(VALUE exc, const char *fmt,...)
#define RSTRING_LENINT(str)
#define rb_intern_const(str)
VALUE rb_define_module(const char *name)
VALUE rb_str_new(const char *, long)