struct Crypto::Secret::Not
- Crypto::Secret::Not
- Struct
- Value
- Object
Overview
A not very secret Secret
, but fast
Suitable uses:
- Holding decrypted data that is NOT secret
- Verification keys that are public (use with care)
- 0 overhead
- Not locked in memory
- Not access protected
- No guard pages
- No wiping
Included Modules
Extended Modules
Defined in:
crypto-secret/not.crConstructors
Instance Method Summary
- #bytesize : Int32
- #to_slice(& : Bytes -> U) forall U
-
#wipe
Zeroes data
Instance methods inherited from module Crypto::Secret::Stateless
finalize
finalize,
noaccess : self
noaccess,
readonly : selfreadonly(& : Bytes -> U) forall U readonly, readwrite : self
readwrite(& : Bytes -> U) forall U readwrite, reset reset
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
Constructor Detail
Instance Method Detail
def wipe
#
Description copied from module Crypto::Secret
Zeroes data
Secret is unavailable (readonly/readwrite may fail) until reset