server/: Expose and enhance the bulk-key-derivation protocol.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 24 Aug 2017 21:24:07 +0000 (22:24 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 16 Jun 2018 18:13:41 +0000 (19:13 +0100)
commitef09dae1af4f84ae093aa071f475d9dd1fc6b1bc
treed8d2d8f421a02facc5b58c4da88e06d271c252e5
parente8ea4061c8cda115466e3520fa897caa559438ac
server/: Expose and enhance the bulk-key-derivation protocol.

  * Rename `struct rawkey' to `deriveargs', and document it;

  * make `ks_derivekey' private in `bulkcrypto.c', and rename it
    `derivekey';

  * make the various contributions to the derived keys be optional and
    handle them not existing sensibly; and

  * cope with the idea that a caller might only want incoming or
    outgoing keys, but not both.

This lays the groundwork for a separately usable public-key encryption
scheme based on the existing machinery, but this will come a bit later.
server/bulkcrypto.c
server/keyexch.c
server/keyset.c
server/tripe.h