Chalsa: Add key_size/nonce_size as class methods

This commit is contained in:
Didactic Drunk 2022-05-12 10:13:57 -07:00
parent 24c5a4170d
commit 2893c5525d

View File

@ -126,6 +126,14 @@ module Sodium::Cipher
end end
end end
def self.key_size : Int32
KEY_SIZE
end
def self.nonce_size : Int32
NONCE_SIZE
end
def key_size : Int32 def key_size : Int32
KEY_SIZE KEY_SIZE
end end