chiark / gitweb /
server/: Make bulk crypto transforms responsible for algorithm selection.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 19 Apr 2017 19:41:18 +0000 (20:41 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 14 May 2017 17:19:08 +0000 (18:19 +0100)
commitc70a7c5cedab62209640b76f03d97c1876e38dc6
treeb050425085a99cc5ebe9b42f93c982cccc83f2ac
parent9a361a98e47bdade7bf107666441f41b4cb67dd9
server/: Make bulk crypto transforms responsible for algorithm selection.

Move all of the logic around processing symmetric algorithm selections
into the `bulkcrypto' transforms.  There are now three associated object
types:

  * an algorithm selection, which ends up attached to a peer key;

  * an encryption context, which actually performs the bulk transform on
    packets; and

  * a challenge context, which can issue and verify challenge tags.

The important improvement here is that now we can add new bulk crypto
transforms which are parametrized in different ways.
server/admin.c
server/bulkcrypto.c
server/chal.c
server/keymgmt.c
server/keyset.c
server/tests.at
server/tripe.h