Chalsa: Add key_size/nonce_size as class methods
parent
24c5a4170d
commit
2893c5525d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue