chiark / gitweb /
sigscheme: Interface for signature schemes
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 29 Sep 2019 13:34:00 +0000 (14:34 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 30 Dec 2019 13:15:49 +0000 (13:15 +0000)
commitf0bb1392a9d54f03b675ccc9da5d65e30be82778
treec11997323ac5c76fcbfbfdf4e7d2342736605e1c
parentcd8a1c31b9aab10493806953a077c4a75fb91104
sigscheme: Interface for signature schemes

There are no implementations yet.  This is split out like this for
review of the api.

We use struct buffer_if to feed key data into the scheme, in both
cases.  This will be convenient for implementations, The loadpub
caller will have the data from base91s, probably.  The loadpriv caller
will have it from a file, but we read the file in the common code.

The API we are introducing now expects each private key buffer to be
fed to the sig schemes one by one until they it finds one that likes
it.  This is in fact not necessary; it was needed in an earlier design
which does not otherwise survive in the published git history.  This
rather suboptimal API will be changed later.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
modules.c
secnet.h