module

CRE::Crypto::Aead

Constants

EVP_CTRL_GCM_GET_TAG = 16
EVP_CTRL_GCM_SET_IVLEN = 9
EVP_CTRL_GCM_SET_TAG = 17
NONCE_SIZE = 12
TAG_SIZE = 16

Class methods

decrypt(ciphertext : Bytes, key : Bytes, aad : Bytes, nonce : Bytes, tag : Bytes) : Bytes
Source
encrypt(plaintext : Bytes, key : Bytes, aad : Bytes) : Tuple(Bytes, Bytes, Bytes)
Source

Nested types