Home
last modified time | relevance | path

Searched refs:arrayLength (Results 1 – 5 of 5) sorted by relevance

/net-tools-3.6.0/tinydtls-0.8.2/ecc/
Dtestfield.c110 assert(ecc_isSame(one, one, arrayLength)); in fieldAddTest()
112 assert(ecc_isSame(temp, one, arrayLength)); in fieldAddTest()
115 assert(ecc_isSame(temp, two, arrayLength)); in fieldAddTest()
118 assert(ecc_isSame(null, temp, arrayLength)); in fieldAddTest()
121 assert(ecc_isSame(temp, resultFullAdd, arrayLength)); in fieldAddTest()
125 assert(ecc_isSame(one, one, arrayLength)); in fieldSubTest()
127 assert(ecc_isSame(one, temp, arrayLength)); in fieldSubTest()
130 assert(ecc_isSame(null, temp, arrayLength)); in fieldSubTest()
133 assert(ecc_isSame(primeMinusOne, temp, arrayLength)); in fieldSubTest()
137 ecc_fieldMult(one, null, temp2, arrayLength); in fieldMultTest()
[all …]
Decc.c138 if(add(x, y, result, arrayLength)){ //add prime if carry is still set! in fieldAdd()
141 add(result, reducer, tempas, arrayLength); in fieldAdd()
142 copy(tempas, result, arrayLength); in fieldAdd()
148 if(sub(x, y, result, arrayLength)){ //add modulus if carry is set in fieldSub()
151 add(result, modulus, tempas, arrayLength); in fieldSub()
152 copy(tempas, result, arrayLength); in fieldSub()
188 copy(B,A,arrayLength); in fieldModP()
248 if(isGreater(A, ecc_prime_m, arrayLength) >= 0){ in fieldModP()
250 copy(tempm, A, arrayLength); in fieldModP()
278 if (length == arrayLength && isGreater(A, ecc_order_m, arrayLength) <= 0) { in fieldModO()
[all …]
Dtestecc.c123 assert(ecc_isSame(tempx, resultAddx, arrayLength)); in addTest()
124 assert(ecc_isSame(tempy, resultAddy, arrayLength)); in addTest()
132 assert(ecc_isSame(tempx, resultDoublex, arrayLength)); in doubleTest()
133 assert(ecc_isSame(tempy, resultDoubley, arrayLength)); in doubleTest()
141 assert(ecc_isSame(tempx, resultMultx, arrayLength)); in multTest()
142 assert(ecc_isSame(tempy, resultMulty, arrayLength)); in multTest()
165 assert(ecc_isSame(tempAx2, tempBx2, arrayLength)); in eccdhTest()
166 assert(ecc_isSame(tempAy2, tempBy2, arrayLength)); in eccdhTest()
180 assert(ecc_isSame(tempx, ecdsaTestresultR1, arrayLength)); in ecdsaTest()
181 assert(ecc_isSame(tempy, ecdsaTestresultS1, arrayLength)); in ecdsaTest()
[all …]
Dtest_helper.c56 for (i = 0; i < arrayLength; ++i) in ecc_setRandom()
Decc.h41 #define arrayLength 8 macro