Searched refs:modulus (Results 1 – 2 of 2) sorted by relevance
/net-tools-latest/tinydtls-0.8.2/ecc/ |
D | ecc.c | 147 static int fieldSub(const uint32_t *x, const uint32_t *y, const uint32_t *modulus, uint32_t *result… in fieldSub() argument 151 add(result, modulus, tempas, arrayLength); in fieldSub() 333 static int fieldAddAndDivide(const uint32_t *x, const uint32_t *modulus, const uint32_t *reducer, u… in fieldAddAndDivide() argument 334 uint32_t n = add(x, modulus, result, arrayLength); in fieldAddAndDivide() 338 if (isGreater(result, modulus, arrayLength) == 1) in fieldAddAndDivide() 353 static void fieldInv(const uint32_t *A, const uint32_t *modulus, const uint32_t *reducer, uint32_t … in fieldInv() argument 364 copy(modulus,v,arrayLength); in fieldInv() 375 fieldAddAndDivide(x1,modulus,reducer,tempm); /* tempm=x1+p */ in fieldInv() 386 fieldAddAndDivide(x2,modulus,reducer,tempm); /* tempm=x1+p */ in fieldInv() 395 fieldSub(x1,x2,modulus,tempm); /* tempm=x1-x2 */ in fieldInv() [all …]
|
D | ecc.h | 72 int ecc_fieldSub(const uint32_t *x, const uint32_t *y, const uint32_t *modulus, uint32_t *result); 76 void ecc_fieldInv(const uint32_t *A, const uint32_t *modulus, const uint32_t *reducer, uint32_t *B);
|