aboutsummaryrefslogtreecommitdiff
path: root/src/tests/tests.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2024-01-19 12:36:11 +0000
committerMichael Brown <mcb30@ipxe.org>2024-01-19 12:40:42 +0000
commitab40ca0df79631519ecf664c8612d23a74734e05 (patch)
tree84bffd0ce13f87f268664f4114d2380ffe189df6 /src/tests/tests.c
parentbac13ba1f658a1e742b9ceb958e670086affebe7 (diff)
downloadipxe-x25519.zip
ipxe-x25519.tar.gz
ipxe-x25519.tar.bz2
[crypto] Add X25519 key exchange algorithmx25519
Add an implementation of the X25519 key exchange algorithm as defined in RFC7748. This implementation is inspired by and partially based upon the paper "Implementing Curve25519/X25519: A Tutorial on Elliptic Curve Cryptography" by Martin Kleppmann, available for download from https://www.cl.cam.ac.uk/teaching/2122/Crypto/curve25519.pdf The underlying modular addition, subtraction, and multiplication operations are completely redesigned for substantially improved efficiency compared to the TweetNaCl implementation studied in that paper (approximately 5x-10x faster and with 70% less memory usage). Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/tests/tests.c')
-rw-r--r--src/tests/tests.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tests/tests.c b/src/tests/tests.c
index fbdf562..41c199c 100644
--- a/src/tests/tests.c
+++ b/src/tests/tests.c
@@ -81,3 +81,4 @@ REQUIRE_OBJECT ( hmac_test );
REQUIRE_OBJECT ( dhe_test );
REQUIRE_OBJECT ( gcm_test );
REQUIRE_OBJECT ( nap_test );
+REQUIRE_OBJECT ( x25519_test );