Hack on the newly imported X25519 and X448 code.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 29 Apr 2017 12:55:40 +0000 (13:55 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 25 Sep 2019 12:46:59 +0000 (13:46 +0100)
commit0bcb8184cfce875a4dde57621139dd44c433f3a5
treed63e264dd55ec05dd48a3c9eb9354a9fd9ece624
parentb7a5ecfcbac18c56d0b044975f6ed6835dd86ab4
Hack on the newly imported X25519 and X448 code.

I've tried to touch the code as little as possible to integrate it with
the rest of Secnet.  I've limited myself to:

  * adding Secnet notices and GPL-mandated notices;

  * removing definitions which obviously won't work;

  * removing code which is unnecessary given Secnet's less ambitious
    portability objectives; and

  * providing substitutes for some of the support types and macros
    assumed by the original implementation, in particular a fake version
    of <mLib/bits.h>.

I've also written a new test driver for the field and curve arithmetic,
and reformatted the test vectors, though the data remains the same.

The code builds and passes the tests.

Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
17 files changed:
Makefile.in
f25519-tests.in [deleted file]
f25519.c
f25519.h
fake-mLib-bits.h [new file with mode: 0644]
fgoldi-tests.in [deleted file]
fgoldi.c
fgoldi.h
montladder.h
qfarith.h
x25519-tests.in
x25519.c
x25519.h
x448-tests.in
x448.c
x448.h
xdh-test.c [new file with mode: 0644]