Poly1305.aead_decrypt

You're seeing just the function aead_decrypt, go back to Poly1305 module for more information.
Link to this function

aead_decrypt(c, k, n, a \\ "", t)

View Source

Specs

aead_decrypt(binary(), key(), nonce(), binary(), tag()) :: binary() | :error

authenticated encryption with additional data - decryption

  • encrypted message
  • shared secret key
  • one-time use nonce
  • additional authenticated data
  • MAC

On success, returns the plaintext message. If the message cannot be authenticated :error is returned.