class

Rayo::Bcrypt::Pool

Inherits Rayo::Uring::Handler < Reference < Object

Constructors

new(threads = 1, capacity = 128, cost : Int32 = 10, window_ms : Int32 = 1)
Source

Class methods

complete_context(result : Result, state : UInt64) : Nil
Source

Instance methods

attach
Source
close

Close only after outstanding callbacks, before closing the worker loop.

Source
hash(password : Bytes, state = 0_u64, &callback : Result, UInt64 -> Nil) : Nil
Source
hash(ctx : Context, password : Bytes, &callback : Result, Context -> Nil) : Nil
Source
on_closed
Source
on_data(ptr : Pointer(UInt8), len : Int32) : Nil
Source
on_sent(result : Int32) : Nil
Source
verify(password : Bytes, hash : Bytes, state = 0_u64, &callback : Result, UInt64 -> Nil) : Nil
Source
verify(ctx : Context, password : Bytes, hash : Bytes, &callback : Result, Context -> Nil) : Nil
Source