package hpke

  1. Overview
  2. Docs

Module Hpke.ErrorSource

Sourcetype t =
  1. | Unsupported_algorithm of int
  2. | Invalid_public_key of string
  3. | Invalid_private_key of string
  4. | Invalid_encapsulation of string
  5. | Key_mismatch
  6. | Unsupported_mode
    (*

    The suite's KEM does not provide the requested mode. ML-KEM has no Auth or AuthPSK mode: see Kem.supports_auth.

    *)
  7. | Derive_key_pair_failure
  8. | Invalid_psk of string
  9. | Invalid_length of string
  10. | Message_limit_reached
  11. | Plaintext_too_long
  12. | Export_length_out_of_range
  13. | Concurrent_use
  14. | Open_error
  15. | Internal_error of string

Errors returned by the public API. Error strings describe classes of invalid input and never contain key material.

Sourceval pp : Format.formatter -> t -> unit