sara matheu
/
CurvasElipticas
Operaciones de generacion de claves, D-H, firma y validacion.
Diff: ecc.h
- Revision:
- 3:74a69ff114ba
- Parent:
- 0:beb846dbccf2
--- a/ecc.h Thu Feb 05 23:08:03 2015 +0000 +++ b/ecc.h Sat Feb 14 18:10:15 2015 +0000 @@ -21,7 +21,7 @@ #define ecc_asm_thumb2 2 /* ARM Thumb-2 assembly (eg Cortex-M3) */ #define ecc_asm_arm 3 /* Regular ARM assembly */ #ifndef ECC_ASM - #define ECC_ASM ecc_asm_none + #define ECC_ASM ecc_asm_1 #endif #define ECC_CONCAT1(a, b) a##b @@ -52,7 +52,7 @@ typedef struct EccPoint { - uint32_t x[NUM_ECC_DIGITS]; + uint32_t x[NUM_ECC_DIGITS]; // es un array de 8 digitos (cada posicion es un numero de 32 bits) luego representa 256 bits uint32_t y[NUM_ECC_DIGITS]; } EccPoint;