class Sodium::Password::Params
- Sodium::Password::Params
- Reference
- Object
Overview
Contains the params necessary for #derive_key.
Defined in:
sodium/password/params.crConstructors
Instance Method Summary
- #key_size : Int32 | Nil
- #key_size=(key_size : Int32 | Nil)
- #mem : UInt64
- #mem=(mem : UInt64)
- #mode : Mode | Nil
- #mode=(mode : Mode | Nil)
- #ops : UInt64
- #ops=(ops : UInt64)
- #salt : Bytes | Nil
- #salt=(salt : Bytes | Nil)
-
#tcost : Float64 | Nil
Information only.
-
#tcost=(tcost : Float64 | Nil)
Information only.
- #to_h
-
#verify : Bytes | Nil
Application specific param to verify a password.
-
#verify=(verify : Bytes | Nil)
Application specific param to verify a password.
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)
#