Module EverCrypt.Error

Return type used for AEAD functions

type error_code =
  1. | UnsupportedAlgorithm
  2. | InvalidKey
  3. | AuthenticationFailure
  4. | InvalidIVLength
  5. | DecodeError
  6. | MaximumLengthExceeded
type 'a result =
  1. | Success of 'a
  2. | Error of error_code