From 7690ae6f8f5da2b4220cb1acc806145e9e23cba6 Mon Sep 17 00:00:00 2001 From: kokke Date: Sun, 5 Nov 2017 01:01:57 +0100 Subject: [PATCH] Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 17edf26..93f5e64 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,16 @@ There is no built-in error checking or protection from out-of-bounds memory acce The module allocates no RAM internally and 2.1K ROM when compiled for ARM (1.4K for Thumb but YMMV). A keypair requires between 63 and 216 bytes of RAM repending on which curve you choose (how big the underlying base field is). + It is one of the smallest implementation in C I've seen yet, but do contact me if you know of something smaller (or have improvements to the code here). + +```C +$ size ecdh.o + text data bss dec hex filename + 1413 0 0 1413 585 ecdh.o +``` + I am using the Free Software Foundation, ARM GCC compiler: $ arm-none-eabi-gcc --version