package hpke

  1. Overview
  2. Docs
Idiomatic RFC 9180 Hybrid Public Key Encryption for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.4.0.tar.gz
md5=af35c94697402d005548f08f797328f2
sha512=5caedd58fcd45e81fc089a4970697af1b8e282ab2c01b5a2b28d567d034b266b47786203a319f2f0efb3f5a97f55e73de2c0ad880739a3d2d3fce1f6a6245ae7

doc/hpke/Hpke/Error/index.html

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 and the PQ/T hybrid KEMs have 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