kmackay / micro-ecc

ECDH and ECDSA for 8-bit, 32-bit, and 64-bit processors.
BSD 2-Clause "Simplified" License
1.26k stars 460 forks source link

Arduino compatibility #199

Open juvebogdancr7 opened 1 year ago

juvebogdancr7 commented 1 year ago

Hello,

Is it possible to use this library on Arduino Mega 2560? I am able to run the example ino file but when I tried this: uECC_Curve curve; curve = uECC_secp160r1(); wordcount_t num_words = curve->num_words;

I got the error: error: invalid use of incomplete type 'const struct uECC_Curve_t'

As for the includes I tried these:

include "uECC.h"

include "uECC_vli.h"

Do you have any advice on this?