class Sodium::Password::Params

Overview

Contains the params necessary for #derive_key.

Defined in:

sodium/password/params.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(mode : Sodium::Password::Mode | Nil, ops : UInt64, mem : UInt64, salt : Slice(UInt8) | Nil = nil, key_size : Int32 | Nil = nil, tcost : Float64 | Nil = nil, verify : Slice(UInt8) | Nil = nil) #

[View source]

Instance Method Detail

def key_size : Int32 | Nil #

[View source]
def key_size=(key_size : Int32 | Nil) #

[View source]
def mem : UInt64 #

[View source]
def mem=(mem : UInt64) #

[View source]
def mode : Mode | Nil #

[View source]
def mode=(mode : Mode | Nil) #

[View source]
def ops : UInt64 #

[View source]
def ops=(ops : UInt64) #

[View source]
def salt : Bytes | Nil #

[View source]
def salt=(salt : Bytes | Nil) #

[View source]
def tcost : Float64 | Nil #

Information only. Not used to derive a key.


[View source]
def tcost=(tcost : Float64 | Nil) #

Information only. Not used to derive a key.


[View source]
def to_h #

[View source]
def verify : Bytes | Nil #

Application specific param to verify a password.


[View source]
def verify=(verify : Bytes | Nil) #

Application specific param to verify a password.


[View source]