"x/ref": Maintain a cache of IBE encryptions performed during connection setup

Presently, our RPC system implements Protocol 3 from the following
document for private mutual authentication
https://docs.google.com/document/d/1FpLJSiKy4sXxRUSZh1BQrhUEn7io-dGW7y-DMszI21Q/edit#heading=h.knkf4cn3hk6w

This protocol is very similar to our regular authentication protocol,
except that the sever sends its blessings encrypted using IBE.
Currently, this IBE encryption cost is incurred during each connection
created by the server. Since a server uses the same blessings
accross all connections it should possible to encrypt the server's
blessings once and thereby amortize the encryption cost.

This CL achieves this amortization by implementing a cache of all IBE
encryption performed during connection setup.

Change-Id: I6d0f4b1ba051b3727345af35a075dcaa6fcf9b53
2 files changed
tree: 0356c5ef6c2d00fcba11e5fbb28880467b6b570a
  1. cmd/
  2. examples/
  3. internal/
  4. lib/
  5. runtime/
  6. services/
  7. test/
  8. .gitignore
  9. AUTHORS
  10. CONTRIBUTING.md
  11. CONTRIBUTORS
  12. envvar.go
  13. envvar_test.go
  14. LICENSE
  15. PATENTS
  16. README.md
  17. VERSION
README.md

Vanadium

This repository contains a reference implementation of the Vanadium APIs.

Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.