Chalsa: Add key_size/nonce_size as class methods

master
Didactic Drunk 2022-05-12 10:13:57 -07:00
parent 24c5a4170d
commit 2893c5525d
1 changed files with 8 additions and 0 deletions

View File

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