Fix Secret::Not

master
Didactic Drunk 2021-06-14 01:44:17 -07:00
parent 3ddc481422
commit 5293281ca9
2 changed files with 4 additions and 5 deletions

1
src/crypto-secret.cr Normal file
View File

@ -0,0 +1 @@
require "./crypto-secret/crypto-secret.cr"

View File

@ -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