Lines Matching refs:n
163 uint8_t k, n; in fieldMult() local
166 for (n = 0; n < length; n++){ in fieldMult()
167 l = (uint64_t)x[n]*(uint64_t)y[k]; in fieldMult()
168 temp[n+k] = l&0xFFFFFFFF; in fieldMult()
169 temp[n+k+1] = l>>32; in fieldMult()
170 add(&temp[n+k], &result[n+k], &result[n+k], (length * 2) - (n + k)); in fieldMult()
184 uint8_t n; in fieldModP() local
191 for(n=0;n<3;n++) tempm[n]=0; in fieldModP()
192 for(n=3;n<8;n++) tempm[n]=B[n+8]; in fieldModP()
199 for(n=0;n<3;n++) tempm[n]=0; in fieldModP()
200 for(n=3;n<7;n++) tempm[n]=B[n+9]; in fieldModP()
201 for(n=7;n<8;n++) tempm[n]=0; in fieldModP()
207 for(n=0;n<3;n++) tempm[n]=B[n+8]; in fieldModP()
208 for(n=3;n<6;n++) tempm[n]=0; in fieldModP()
209 for(n=6;n<8;n++) tempm[n]=B[n+8]; in fieldModP()
213 for(n=0;n<3;n++) tempm[n]=B[n+9]; in fieldModP()
214 for(n=3;n<6;n++) tempm[n]=B[n+10]; in fieldModP()
215 for(n=6;n<7;n++) tempm[n]=B[n+7]; in fieldModP()
216 for(n=7;n<8;n++) tempm[n]=B[n+1]; in fieldModP()
220 for(n=0;n<3;n++) tempm[n]=B[n+11]; in fieldModP()
221 for(n=3;n<6;n++) tempm[n]=0; in fieldModP()
222 for(n=6;n<7;n++) tempm[n]=B[n+2]; in fieldModP()
223 for(n=7;n<8;n++) tempm[n]=B[n+3]; in fieldModP()
227 for(n=0;n<4;n++) tempm[n]=B[n+12]; in fieldModP()
228 for(n=4;n<6;n++) tempm[n]=0; in fieldModP()
229 for(n=6;n<7;n++) tempm[n]=B[n+3]; in fieldModP()
230 for(n=7;n<8;n++) tempm[n]=B[n+4]; in fieldModP()
234 for(n=0;n<3;n++) tempm[n]=B[n+13]; in fieldModP()
235 for(n=3;n<6;n++) tempm[n]=B[n+5]; in fieldModP()
236 for(n=6;n<7;n++) tempm[n]=0; in fieldModP()
237 for(n=7;n<8;n++) tempm[n]=B[n+5]; in fieldModP()
241 for(n=0;n<2;n++) tempm[n]=B[n+14]; in fieldModP()
242 for(n=2;n<3;n++) tempm[n]=0; in fieldModP()
243 for(n=3;n<6;n++) tempm[n]=B[n+6]; in fieldModP()
244 for(n=6;n<7;n++) tempm[n]=0; in fieldModP()
245 for(n=7;n<8;n++) tempm[n]=B[n+6]; in fieldModP()
303 uint8_t n; in isOne() local
304 for(n=1;n<8;n++) in isOne()
305 if (A[n]!=0) in isOne()
308 if ((n==8)&&(A[0]==1)) in isOne()
315 uint8_t n, r=0; in isZero() local
316 for(n=0;n<8;n++){ in isZero()
317 if (A[n] == 0) r++; in isZero()
323 int n, i; in rshift() local
327 n = A[i]&0x1; in rshift()
329 nOld = n; in rshift()
334 uint32_t n = add(x, modulus, result, arrayLength); in fieldAddAndDivide() local
336 if(n){ //add prime if carry is still set! in fieldAddAndDivide()