D | testfield.c | 55 uint32_t one[8] = { 0x00000001,0x00000000,0x00000000,0x00000000, variable 110 assert(ecc_isSame(one, one, arrayLength)); in fieldAddTest() 111 ecc_fieldAdd(one, null, ecc_prime_r, temp); in fieldAddTest() 112 assert(ecc_isSame(temp, one, arrayLength)); in fieldAddTest() 114 ecc_fieldAdd(one, one, ecc_prime_r, temp); in fieldAddTest() 117 ecc_add(full, one, temp, 32); in fieldAddTest() 120 ecc_fieldAdd(full, one, ecc_prime_r, temp); in fieldAddTest() 125 assert(ecc_isSame(one, one, arrayLength)); in fieldSubTest() 126 ecc_fieldSub(one, null, ecc_prime_m, temp); in fieldSubTest() 127 assert(ecc_isSame(one, temp, arrayLength)); in fieldSubTest() [all …]
|