diff --git a/src/crypto-secret.cr b/src/crypto-secret.cr new file mode 100644 index 0000000..3667753 --- /dev/null +++ b/src/crypto-secret.cr @@ -0,0 +1 @@ +require "./crypto-secret/crypto-secret.cr" diff --git a/src/crypto-secret/not.cr b/src/crypto-secret/not.cr index 16de597..3e7be60 100644 --- a/src/crypto-secret/not.cr +++ b/src/crypto-secret/not.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