Debian Codegraph @

third_party/rust/ohttp/README.md

raw
1 # Oblivious HTTP
2
3 This is a rust implementation of [Oblivious
4 HTTP](https://ietf-wg-ohai.github.io/oblivious-http/draft-ietf-ohai-ohttp.html).
5
6 This work is undergoing active revision in the IETF and so are these
7 implementations. Use at your own risk.
8
9 This crate uses either [hpke](https://github.com/rozbb/rust-hpke) or
10 [NSS](https://firefox-source-docs.mozilla.org/security/nss/index.html) for
11 cryptographic primitives.
12
13
14 ## Using
15
16 The API documentation is currently sparse, but the API is fairly small and
17 descriptive.
18
19 The `ohttp` crate has the following features:
20
21 - `client` enables the client-side processing of oblivious HTTP messages:
22 encrypting requests and decrypting responses. This is enabled by default.
23
24 - `server` enables the server-side processing of oblivious HTTP messages:
25 decrypting requests and encrypting responses. This is enabled by default.
26
27 - `rust-hpke` selects the [hpke](https://github.com/rozbb/rust-hpke) crate for
28 HPKE encryption. This is enabled by default and cannot be enabled at the same
29 time as `nss`.
30
31 - `nss` selects
32 [NSS](https://firefox-source-docs.mozilla.org/security/nss/index.html). This is
33 disabled by default and cannot be enabled at the same time as `rust-hpke`.