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
-
#readonly : self
Not thread safe
-
#readonly(& : Bytes -> U) forall U
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(& : Bytes -> U) forall U
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(data : Crypto::Secret) : Nil copy_from, dup dup, finalize finalize, hexstring : String hexstring, inspect(io : IO) : Nil inspect, move_from(data : Crypto::Secret) : Nil
move_from(data : Bytes) : Nil move_from, noaccess : self noaccess, random : self random, readonly : self
readonly(& : Bytes -> U) forall U readonly, readwrite : self
readwrite(& : Bytes -> U) forall U readwrite, reset reset, wipe(&)
wipe wipe
Instance Method Detail
def readonly(& : Bytes -> U) forall U
#
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(& : Bytes -> U) forall U
#
Yields a Slice that is readable and writable
slice
is only available within the block
Not thread safe