package ohttp

  1. Overview
  2. Docs
Oblivious HTTP (RFC 9458) for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1.2.tar.gz
md5=6a31dba01d9ee06d1b0115516439d8b0
sha512=c2739c32cf8d44b36ca565052f6b14feaf99a029115e8d94dcd469bd363f7dacd8e401a4ca07c0a3555f0fe5572a37516b489ddd945ee9acae4ceafc29e7dadb

doc/ohttp/Ohttp/Gateway/Key/index.html

Module Gateway.KeySource

Sourcetype t

An HPKE private key with the key configuration that advertises it.

RFC 9458 Section 6.4: a gateway's keys must not be valid for any other protocol that uses HPKE with the same labels.

Sourceval generate : rng:Mirage_crypto_rng.g -> key_id:int -> ?symmetric:Suite.symmetric list -> Hpke.Kem.id -> (t, Error.t) result

symmetric defaults to Suite.default_symmetric.

Sourceval derive : key_id:int -> ?symmetric:Suite.symmetric list -> Hpke.Kem.id -> ikm:string -> (t, Error.t) result

The key that RFC 9180 DeriveKeyPair derives from ikm, which must be secret and hold at least as much entropy as a private key. Other implementations derive the same key from the same input.

Sourceval of_private_key : key_id:int -> ?symmetric:Suite.symmetric list -> Hpke.Private_key.t -> (t, Error.t) result
Sourceval key_id : t -> int
Sourceval config : t -> Key_config.t