Module phoenix_core::aes

source ·
Expand description

AES symmetric cipher

Constants§

  • Size of the extra encryption data required by the cipher: the nonce (12 bytes) and the tag (16 bytes)

Functions§

  • Decrypts an encryption (nonce + ciphertext) given a shared DH secret key, returning the plaintext
  • Encrypts a plaintext given a shared DH secret key, returning a vector containing a nonce and the ciphertext (which includes the tag)