Module: Scrypty

Defined in:
lib/scrypty/version.rb,
ext/ruby_ext.c

Defined Under Namespace

Classes: ClockTimeError, DerivedKeyError, Exception, IncorrectPasswordError, InvalidBlockError, MemoryLimitError, NotEnoughMemoryError, OpenSSLError, ReadError, SaltError, TooMuchTimeError, UnrecognizedFormatError, WriteError

Constant Summary collapse

VERSION =
"0.0.4"

Class Method Summary collapse

Class Method Details

.decryptObject



185
186
187
# File 'ext/ruby_ext.c', line 185

VALUE
scrypty_decrypt_buffer(rb_obj, rb_data, rb_password, rb_maxmem, rb_maxmemfrac, rb_maxtime)
VALUE rb_obj;

.decrypt_fileObject



286
287
288
# File 'ext/ruby_ext.c', line 286

VALUE
scrypty_decrypt_file(rb_obj, rb_infn, rb_outfn, rb_password, rb_maxmem, rb_maxmemfrac, rb_maxtime)
VALUE rb_obj;

.decrypt_rawObject



587
588
589
# File 'ext/ruby_ext.c', line 587

VALUE
scrypty_decrypt_raw(rb_obj, rb_data, rb_dk)
VALUE rb_obj;

.dkObject



444
445
446
# File 'ext/ruby_ext.c', line 444

VALUE
scrypty_dk(rb_obj, rb_password, rb_salt, rb_n, rb_r, rb_p, rb_keylen)
VALUE rb_obj;

.encryptObject



172
173
174
# File 'ext/ruby_ext.c', line 172

VALUE
scrypty_encrypt_buffer(rb_obj, rb_data, rb_password, rb_maxmem, rb_maxmemfrac, rb_maxtime)
VALUE rb_obj;

.encrypt_fileObject



272
273
274
# File 'ext/ruby_ext.c', line 272

VALUE
scrypty_encrypt_file(rb_obj, rb_infn, rb_outfn, rb_password, rb_maxmem, rb_maxmemfrac, rb_maxtime)
VALUE rb_obj;

.encrypt_rawObject



533
534
535
# File 'ext/ruby_ext.c', line 533

VALUE
scrypty_encrypt_raw(rb_obj, rb_data, rb_dk)
VALUE rb_obj;

.memlimitObject



300
301
302
# File 'ext/ruby_ext.c', line 300

VALUE
scrypty_memlimit(rb_obj, rb_maxmem, rb_maxmemfrac)
VALUE rb_obj;

.opslimitObject



343
344
345
# File 'ext/ruby_ext.c', line 343

VALUE
scrypty_opslimit(rb_obj, rb_maxtime)
VALUE rb_obj;

.paramsObject

Calculate parameters used for creating a derived key with the scrypt algorithm.



372
373
374
# File 'ext/ruby_ext.c', line 372

VALUE
scrypty_params(rb_obj, rb_memlimit, rb_opslimit)
VALUE rb_obj;