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