Secret: Remove #noaccess with block
This commit is contained in:
parent
f9eefbde0e
commit
a5a5d9de03
@ -144,8 +144,6 @@ module Crypto::Secret
|
|||||||
abstract def readwrite(& : Bytes -> U) forall U
|
abstract def readwrite(& : Bytes -> U) forall U
|
||||||
# Temporarily marks a region as readonly depending on implementation and yields `Bytes`
|
# Temporarily marks a region as readonly depending on implementation and yields `Bytes`
|
||||||
abstract def readonly(& : Bytes -> U) forall U
|
abstract def readonly(& : Bytes -> U) forall U
|
||||||
# Temporarily Makes a region inaccessible depending on implementation. It cannot be read or written, but the data are preserved.
|
|
||||||
abstract def noaccess(& : Bytes -> U) forall U
|
|
||||||
|
|
||||||
protected abstract def to_slice(& : Bytes -> U) forall U
|
protected abstract def to_slice(& : Bytes -> U) forall U
|
||||||
abstract def bytesize : Int32
|
abstract def bytesize : Int32
|
||||||
|
@ -46,11 +46,6 @@ module Crypto::Secret::Stateless
|
|||||||
self
|
self
|
||||||
end
|
end
|
||||||
|
|
||||||
# Not thread safe
|
|
||||||
def noaccess(& : Bytes -> U) forall U
|
|
||||||
yield
|
|
||||||
end
|
|
||||||
|
|
||||||
# Not thread safe
|
# Not thread safe
|
||||||
def reset
|
def reset
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user