module

Crypto

Constants

MUCH_MB = 50
OVERHEAD_SYMMETRIC = Header.size + Nonce.size

Class methods

blake2b(data : Bytes, *, hash_size : Int32 = 64, key : Bytes | Nil = nil) : Bytes
Source
decrypt(*, output : Bytes, additional : Bytes | Nil = nil, key : SymmetricKey, input : Bytes) : Bool
Source
encrypt(*, output : Bytes, key : SymmetricKey, input : Bytes, additional : Bytes | Nil = nil) : Nil

adds nonce and mac to the packet

Source
sha512(data : Bytes) : Bytes
Source

Nested types