Use macros for number of bits and words

This commit is contained in:
Manuel Pégourié-Gonnard 2019-11-04 12:31:06 +01:00
parent c3ec14c87f
commit 78a7e351fe
2 changed files with 9 additions and 8 deletions

View file

@ -111,6 +111,7 @@ typedef uint64_t uECC_dword_t;
#define NUM_ECC_WORDS 8
/* Number of bytes to represent an element of the the curve p-256: */
#define NUM_ECC_BYTES (uECC_WORD_SIZE*NUM_ECC_WORDS)
#define NUM_ECC_BITS 256
/* structure that represents an elliptic curve (e.g. p256):*/
struct uECC_Curve_t;