From e58c7e43e2f868a2019d415a956053fe17ce4533 Mon Sep 17 00:00:00 2001 From: Didactic Drunk <1479616+didactic-drunk@users.noreply.github.com> Date: Sat, 14 May 2022 09:11:56 -0700 Subject: [PATCH] Chalsa: Allow encrypting > 2gb --- src/sodium/cipher/chalsa.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sodium/cipher/chalsa.cr b/src/sodium/cipher/chalsa.cr index ab74a0e..03d5797 100644 --- a/src/sodium/cipher/chalsa.cr +++ b/src/sodium/cipher/chalsa.cr @@ -12,7 +12,7 @@ module Sodium::Cipher getter! nonce : Bytes? # Advanced usage. Don't touch. - property offset = 0 + property offset = 0_u64 def initialize(key : Crypto::Secret | Bytes, nonce = nil) raise ArgumentError.new("key must be #{key_size} bytes, got #{key.bytesize}") if key.bytesize != key_size