Build and test the new crypto toys mdw/import-catacomb
authorMark Wooding <mdw@distorted.org.uk>
Sun, 29 Sep 2019 02:14:32 +0000 (03:14 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 29 Sep 2019 02:14:32 +0000 (03:14 +0100)
commiteac0a45fdd670274c6e5c976dc3de5d50cb83262
tree205ffa699568f0a91174952fed1204fc6de8db96
parenta3ec8ad20d3f88f6d188b5adf2ec4ae7465c3a81
Build and test the new crypto toys

  * Add a collection of test programs.  (The upstream test programs are
    too heavily entangled with infrastructure that I'd actually prefer
    to replace with something like this new stuff.)

  * Add some new features to the header files `unaligned.h' and `u64.h'
    that are needed by the new code.

  * Almost all of Catacomb's crypto code depends on a header called
    <mLib/bits.h> which does various low-level bit operations.  Provide
    a fake version, `fake-mLib-bits.h', which implements the necessary
    things in terms of C99 <stdint.h> and what we already have lying
    around here in `unaligned.h' and `u64.h'.

With that, we have enough to build and run the tests and watch them all
pass.

Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
13 files changed:
.gitignore
Makefile.in
crypto-test.c [new file with mode: 0644]
crypto-test.h [new file with mode: 0644]
ec-field-test.c [new file with mode: 0644]
ed25519-test.c [new file with mode: 0644]
ed448-test.c [new file with mode: 0644]
fake-mLib-bits.h [new file with mode: 0644]
keccak1600-test.c [new file with mode: 0644]
sha3-test.c [new file with mode: 0644]
u64.h
unaligned.h
xdh-test.c [new file with mode: 0644]