Fix Secret::Not
parent
3ddc481422
commit
5293281ca9
|
@ -0,0 +1 @@
|
|||
require "./crypto-secret/crypto-secret.cr"
|
|
@ -6,15 +6,13 @@
|
|||
struct Crypto::Secret::Not
|
||||
include Crypto::Secret
|
||||
|
||||
def initialize(size)
|
||||
@bytes = Bytes.new size
|
||||
def self.new(size)
|
||||
new Bytes.new(size)
|
||||
end
|
||||
|
||||
def to_slice : Bytes
|
||||
@bytes
|
||||
def initialize(@bytes : Bytes)
|
||||
end
|
||||
|
||||
|
||||
delegate_to_slice @bytes
|
||||
delegate_to_bytesize @bytes
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue