module Crypto
Defined in:
monocypher.crmonocypher/hashes.cr
Constant Summary
-
MUCH_MB =
50
-
OVERHEAD_SYMMETRIC =
Header.size + Nonce.size
Class Method Summary
- .blake2b(data : Bytes, *, hash_size : Int32 = 64, key : Bytes | Nil = nil) : Bytes
- .decrypt(*, output : Bytes, additional : Bytes | Nil = nil, key : SymmetricKey, input : Bytes) : Bool
-
.encrypt(*, output : Bytes, key : SymmetricKey, input : Bytes, additional : Bytes | Nil = nil) : Nil
adds nonce and mac to the packet
- .sha512(data : Bytes) : Bytes
Class Method Detail
def self.decrypt(*, output : Bytes, additional : Bytes | Nil = nil, key : SymmetricKey, input : Bytes) : Bool
#
def self.encrypt(*, output : Bytes, key : SymmetricKey, input : Bytes, additional : Bytes | Nil = nil) : Nil
#
adds nonce and mac to the packet