chiark / gitweb /
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)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 8 Dec 2019 00:38:42 +0000 (00:38 +0000)
commit6b59a4af993b2c1dedb663e89c19e692ea2ffa4b
tree857c8a00baa0562aee5e2c99fef84732f8b95b1d
parent7772fe7db6c4246e4818e7bdb7d24cb85426ca79
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:
Subdir.sd.mk
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]