module Crypto::Secret::Stateless
Overview
Provides a 0 overhead implementation of [#readwrite, #readonly, #noaccess, #reset] with no protection
Data is still erased when out of scope
Included Modules
Direct including types
Defined in:
crypto-secret/lib.crcrypto-secret/stateless.cr
Instance Method Summary
- #finalize
-
#noaccess : self
Not thread safe
-
#noaccess(&)
Not thread safe
-
#readonly : self
Not thread safe
-
#readonly(&)
Yields a Slice that is readable possibly writable depending on the prior protection level and underlying implementation Don't write to it
-
#readwrite : self
Not thread safe
-
#readwrite(&)
Yields a Slice that is readable and writable
-
#reset
Not thread safe
Instance methods inherited from module Crypto::Secret
==(other : Secret) : Bool==(other : Bytes) : Bool ==, bytesize : Int32 bytesize, copy_from(data : Bytes) : Nil copy_from, dup dup, finalize finalize, hexstring : String hexstring, inspect(io : IO) : Nil inspect, move_from(data : Bytes) : Nil move_from, noaccess : self noaccess, random : self random, readonly : self readonly, readwrite : self readwrite, reset reset, wipe
wipe(&) wipe
Instance Method Detail
def readonly(&)
#
Yields a Slice that is readable possibly writable depending on the prior protection level and underlying implementation Don't write to it
Not thread safe
def readwrite(&)
#
Yields a Slice that is readable and writable
slice
is only available within the block
Not thread safe