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 struct Crypto::Secret::Not
include Crypto::Secret include Crypto::Secret
def initialize(size) def self.new(size)
@bytes = Bytes.new size new Bytes.new(size)
end end
def to_slice : Bytes def initialize(@bytes : Bytes)
@bytes
end end
delegate_to_slice @bytes delegate_to_slice @bytes
delegate_to_bytesize @bytes delegate_to_bytesize @bytes
end end