X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=ecdsa%2Fecc.h;h=99dd4f4bc3998306e99e1964b047d0e7f83bbf77;hp=ac7d98c4f03e1343bfdc953739b78df3ecd18cbc;hb=56e75f661dfea7104d76421be6059f098d3236d4;hpb=d3b4df851c0d7fb1cfe38162c6d0781ba3afa910 diff --git a/ecdsa/ecc.h b/ecdsa/ecc.h index ac7d98c..99dd4f4 100644 --- a/ecdsa/ecc.h +++ b/ecdsa/ecc.h @@ -20,6 +20,8 @@ #ifndef ECC_H_ #define ECC_H_ +#include + typedef struct { bigint_t x; bigint_t y; @@ -44,6 +46,11 @@ typedef struct { int (*reduce_p)(bigint_t*); } ecc_curve_sp_t; + +uint8_t ecc_chudnovsky_point_alloc(ecc_chudnovsky_point_t* p, size_t length_B); + +void ecc_chudnovsky_point_free(ecc_chudnovsky_point_t* p); + void ecc_chudnovsky_point_print(const ecc_chudnovsky_point_t *p);