Module: Argon2::KDF

Defined in:
lib/argon2/kdf.rb,
lib/argon2/kdf/ffi.rb,
lib/argon2/kdf/version.rb

Defined Under Namespace

Modules: FFI Classes: Error

Constant Summary collapse

VERSION =
"0.1.6"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.ffi_libObject

Returns the value of attribute ffi_lib


12
13
14
# File 'lib/argon2/kdf.rb', line 12

def ffi_lib
  @ffi_lib
end

Class Method Details

.argon2d(pass, salt:, t:, m:, p:, length:) ⇒ Object


41
42
43
# File 'lib/argon2/kdf.rb', line 41

def argon2d(pass, salt:, t:, m:, p:, length:)
  kdf(:argon2d, pass, salt, t, m, p, length)
end

.argon2i(pass, salt:, t:, m:, p:, length:) ⇒ Object


37
38
39
# File 'lib/argon2/kdf.rb', line 37

def argon2i(pass, salt:, t:, m:, p:, length:)
  kdf(:argon2i, pass, salt, t, m, p, length)
end

.argon2id(pass, salt:, t:, m:, p:, length:) ⇒ Object


45
46
47
# File 'lib/argon2/kdf.rb', line 45

def argon2id(pass, salt:, t:, m:, p:, length:)
  kdf(:argon2id, pass, salt, t, m, p, length)
end