forked from wolfSSL/wolfssl
use lower case variables, prevent conflict with some toolchain defines
This commit is contained in:
@ -510,104 +510,104 @@ void s_fp_add(fp_int *a, fp_int *b, fp_int *c);
|
|||||||
void s_fp_sub(fp_int *a, fp_int *b, fp_int *c);
|
void s_fp_sub(fp_int *a, fp_int *b, fp_int *c);
|
||||||
void fp_reverse(unsigned char *s, int len);
|
void fp_reverse(unsigned char *s, int len);
|
||||||
|
|
||||||
void fp_mul_comba(fp_int *A, fp_int *B, fp_int *C);
|
void fp_mul_comba(fp_int *a, fp_int *b, fp_int *c);
|
||||||
|
|
||||||
#ifdef TFM_SMALL_SET
|
#ifdef TFM_SMALL_SET
|
||||||
void fp_mul_comba_small(fp_int *A, fp_int *B, fp_int *C);
|
void fp_mul_comba_small(fp_int *a, fp_int *b, fp_int *c);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef TFM_MUL3
|
#ifdef TFM_MUL3
|
||||||
void fp_mul_comba3(fp_int *A, fp_int *B, fp_int *C);
|
void fp_mul_comba3(fp_int *a, fp_int *b, fp_int *c);
|
||||||
#endif
|
#endif
|
||||||
#ifdef TFM_MUL4
|
#ifdef TFM_MUL4
|
||||||
void fp_mul_comba4(fp_int *A, fp_int *B, fp_int *C);
|
void fp_mul_comba4(fp_int *a, fp_int *b, fp_int *c);
|
||||||
#endif
|
#endif
|
||||||
#ifdef TFM_MUL6
|
#ifdef TFM_MUL6
|
||||||
void fp_mul_comba6(fp_int *A, fp_int *B, fp_int *C);
|
void fp_mul_comba6(fp_int *a, fp_int *b, fp_int *c);
|
||||||
#endif
|
#endif
|
||||||
#ifdef TFM_MUL7
|
#ifdef TFM_MUL7
|
||||||
void fp_mul_comba7(fp_int *A, fp_int *B, fp_int *C);
|
void fp_mul_comba7(fp_int *a, fp_int *b, fp_int *c);
|
||||||
#endif
|
#endif
|
||||||
#ifdef TFM_MUL8
|
#ifdef TFM_MUL8
|
||||||
void fp_mul_comba8(fp_int *A, fp_int *B, fp_int *C);
|
void fp_mul_comba8(fp_int *a, fp_int *b, fp_int *c);
|
||||||
#endif
|
#endif
|
||||||
#ifdef TFM_MUL9
|
#ifdef TFM_MUL9
|
||||||
void fp_mul_comba9(fp_int *A, fp_int *B, fp_int *C);
|
void fp_mul_comba9(fp_int *a, fp_int *b, fp_int *c);
|
||||||
#endif
|
#endif
|
||||||
#ifdef TFM_MUL12
|
#ifdef TFM_MUL12
|
||||||
void fp_mul_comba12(fp_int *A, fp_int *B, fp_int *C);
|
void fp_mul_comba12(fp_int *a, fp_int *b, fp_int *c);
|
||||||
#endif
|
#endif
|
||||||
#ifdef TFM_MUL17
|
#ifdef TFM_MUL17
|
||||||
void fp_mul_comba17(fp_int *A, fp_int *B, fp_int *C);
|
void fp_mul_comba17(fp_int *a, fp_int *b, fp_int *c);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef TFM_MUL20
|
#ifdef TFM_MUL20
|
||||||
void fp_mul_comba20(fp_int *A, fp_int *B, fp_int *C);
|
void fp_mul_comba20(fp_int *a, fp_int *b, fp_int *c);
|
||||||
#endif
|
#endif
|
||||||
#ifdef TFM_MUL24
|
#ifdef TFM_MUL24
|
||||||
void fp_mul_comba24(fp_int *A, fp_int *B, fp_int *C);
|
void fp_mul_comba24(fp_int *a, fp_int *b, fp_int *c);
|
||||||
#endif
|
#endif
|
||||||
#ifdef TFM_MUL28
|
#ifdef TFM_MUL28
|
||||||
void fp_mul_comba28(fp_int *A, fp_int *B, fp_int *C);
|
void fp_mul_comba28(fp_int *a, fp_int *b, fp_int *c);
|
||||||
#endif
|
#endif
|
||||||
#ifdef TFM_MUL32
|
#ifdef TFM_MUL32
|
||||||
void fp_mul_comba32(fp_int *A, fp_int *B, fp_int *C);
|
void fp_mul_comba32(fp_int *a, fp_int *b, fp_int *c);
|
||||||
#endif
|
#endif
|
||||||
#ifdef TFM_MUL48
|
#ifdef TFM_MUL48
|
||||||
void fp_mul_comba48(fp_int *A, fp_int *B, fp_int *C);
|
void fp_mul_comba48(fp_int *a, fp_int *b, fp_int *c);
|
||||||
#endif
|
#endif
|
||||||
#ifdef TFM_MUL64
|
#ifdef TFM_MUL64
|
||||||
void fp_mul_comba64(fp_int *A, fp_int *B, fp_int *C);
|
void fp_mul_comba64(fp_int *a, fp_int *b, fp_int *c);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void fp_sqr_comba(fp_int *A, fp_int *B);
|
void fp_sqr_comba(fp_int *a, fp_int *b);
|
||||||
|
|
||||||
#ifdef TFM_SMALL_SET
|
#ifdef TFM_SMALL_SET
|
||||||
void fp_sqr_comba_small(fp_int *A, fp_int *B);
|
void fp_sqr_comba_small(fp_int *a, fp_int *b);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef TFM_SQR3
|
#ifdef TFM_SQR3
|
||||||
void fp_sqr_comba3(fp_int *A, fp_int *B);
|
void fp_sqr_comba3(fp_int *a, fp_int *b);
|
||||||
#endif
|
#endif
|
||||||
#ifdef TFM_SQR4
|
#ifdef TFM_SQR4
|
||||||
void fp_sqr_comba4(fp_int *A, fp_int *B);
|
void fp_sqr_comba4(fp_int *a, fp_int *b);
|
||||||
#endif
|
#endif
|
||||||
#ifdef TFM_SQR6
|
#ifdef TFM_SQR6
|
||||||
void fp_sqr_comba6(fp_int *A, fp_int *B);
|
void fp_sqr_comba6(fp_int *a, fp_int *b);
|
||||||
#endif
|
#endif
|
||||||
#ifdef TFM_SQR7
|
#ifdef TFM_SQR7
|
||||||
void fp_sqr_comba7(fp_int *A, fp_int *B);
|
void fp_sqr_comba7(fp_int *a, fp_int *b);
|
||||||
#endif
|
#endif
|
||||||
#ifdef TFM_SQR8
|
#ifdef TFM_SQR8
|
||||||
void fp_sqr_comba8(fp_int *A, fp_int *B);
|
void fp_sqr_comba8(fp_int *a, fp_int *b);
|
||||||
#endif
|
#endif
|
||||||
#ifdef TFM_SQR9
|
#ifdef TFM_SQR9
|
||||||
void fp_sqr_comba9(fp_int *A, fp_int *B);
|
void fp_sqr_comba9(fp_int *a, fp_int *b);
|
||||||
#endif
|
#endif
|
||||||
#ifdef TFM_SQR12
|
#ifdef TFM_SQR12
|
||||||
void fp_sqr_comba12(fp_int *A, fp_int *B);
|
void fp_sqr_comba12(fp_int *a, fp_int *b);
|
||||||
#endif
|
#endif
|
||||||
#ifdef TFM_SQR17
|
#ifdef TFM_SQR17
|
||||||
void fp_sqr_comba17(fp_int *A, fp_int *B);
|
void fp_sqr_comba17(fp_int *a, fp_int *b);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef TFM_SQR20
|
#ifdef TFM_SQR20
|
||||||
void fp_sqr_comba20(fp_int *A, fp_int *B);
|
void fp_sqr_comba20(fp_int *a, fp_int *b);
|
||||||
#endif
|
#endif
|
||||||
#ifdef TFM_SQR24
|
#ifdef TFM_SQR24
|
||||||
void fp_sqr_comba24(fp_int *A, fp_int *B);
|
void fp_sqr_comba24(fp_int *a, fp_int *b);
|
||||||
#endif
|
#endif
|
||||||
#ifdef TFM_SQR28
|
#ifdef TFM_SQR28
|
||||||
void fp_sqr_comba28(fp_int *A, fp_int *B);
|
void fp_sqr_comba28(fp_int *a, fp_int *b);
|
||||||
#endif
|
#endif
|
||||||
#ifdef TFM_SQR32
|
#ifdef TFM_SQR32
|
||||||
void fp_sqr_comba32(fp_int *A, fp_int *B);
|
void fp_sqr_comba32(fp_int *a, fp_int *b);
|
||||||
#endif
|
#endif
|
||||||
#ifdef TFM_SQR48
|
#ifdef TFM_SQR48
|
||||||
void fp_sqr_comba48(fp_int *A, fp_int *B);
|
void fp_sqr_comba48(fp_int *a, fp_int *b);
|
||||||
#endif
|
#endif
|
||||||
#ifdef TFM_SQR64
|
#ifdef TFM_SQR64
|
||||||
void fp_sqr_comba64(fp_int *A, fp_int *B);
|
void fp_sqr_comba64(fp_int *a, fp_int *b);
|
||||||
#endif
|
#endif
|
||||||
/*extern const char *fp_s_rmap;*/
|
/*extern const char *fp_s_rmap;*/
|
||||||
|
|
||||||
@ -642,7 +642,7 @@ int mp_mul (mp_int * a, mp_int * b, mp_int * c);
|
|||||||
int mp_mulmod (mp_int * a, mp_int * b, mp_int * c, mp_int * d);
|
int mp_mulmod (mp_int * a, mp_int * b, mp_int * c, mp_int * d);
|
||||||
int mp_mod(mp_int *a, mp_int *b, mp_int *c);
|
int mp_mod(mp_int *a, mp_int *b, mp_int *c);
|
||||||
int mp_invmod(mp_int *a, mp_int *b, mp_int *c);
|
int mp_invmod(mp_int *a, mp_int *b, mp_int *c);
|
||||||
int mp_exptmod (mp_int * G, mp_int * X, mp_int * P, mp_int * Y);
|
int mp_exptmod (mp_int * g, mp_int * x, mp_int * p, mp_int * y);
|
||||||
|
|
||||||
int mp_cmp(mp_int *a, mp_int *b);
|
int mp_cmp(mp_int *a, mp_int *b);
|
||||||
int mp_cmp_d(mp_int *a, mp_digit b);
|
int mp_cmp_d(mp_int *a, mp_digit b);
|
||||||
|
Reference in New Issue
Block a user