commit | e2d59e469b55104ce7cf71dd03116b976832641a | [log] [tgz] |
---|---|---|
author | Ken MacKay <kmackay@gmail.com> | Sat May 17 23:26:43 2014 -0700 |
committer | Ken MacKay <kmackay@gmail.com> | Sat May 17 23:26:43 2014 -0700 |
tree | cafb3e901da91fe07b22548be529c05dfdecdd73 | |
parent | 81b55e69650c60bb254c18ecfb34b8f3db634689 [diff] |
Add note about Arduino usage.
A small and fast ECDH and ECDSA implementation for 8-bit, 32-bit, and 64-bit processors.
The old version of micro-ecc can be found in the “old” branch.
Compressed points are represented in the standard format as defined in http://www.secg.org/collateral/sec1_final.pdf; uncompressed points are represented in standard format, but without the 0x04
prefix. uECC_make_key()
, uECC_shared_secret()
, uECC_sign()
, and uECC_verify()
only handle uncompressed points; you can use uECC_compress()
and uECC_decompress()
to convert between compressed and uncompressed point representations.
Private keys are represented in the standard format.
I recommend just copying (or symlink) uECC.h, uECC.c, and the appropriate asm_<arch>_.inc (if any) into your project. Then just #include "uECC.h"
to use the micro-ecc functions.
For use with Arduino, you can just create a symlink to the uECC
directory in your Arduino libraries
directory. You can then use uECC just like any other Arduino library (uECC should show up in the Sketch=>Import Library submenu).
See uECC.h for documentation for each function.
uECC_ASM
is defined to uECC_asm_small
or uECC_asm_fast
), you must use the -fomit-frame-pointer
GCC option (this is enabled by default when compiling with -O1
or higher).-O1
or higher).advapi32.lib
system library.