Searched refs:P256_DIGIT (Results 1 – 3 of 3) sorted by relevance
/system/core/libmincrypt/ |
D | p256.c | 59 return (P256_DIGIT(scalar, bit / P256_BITSPERDIGIT) in p256_get_bit() 65 for (i = 0; i < P256_NDIGITS; ++i) result |= P256_DIGIT(a, i); in p256_is_zero() 80 carry += (p256_ddigit)P256_DIGIT(a, i) * b; in mulAdd() 118 borrow -= P256_DIGIT(MOD, i) & mask; in subM() 135 carry += P256_DIGIT(MOD, i) & mask; in addM() 155 top = mulAdd(a, P256_DIGIT(b, i), 0, tmp + i); in p256_modmul() 191 int p256_is_odd(const p256_int* a) { return P256_DIGIT(a, 0) & 1; } in p256_is_odd() 192 int p256_is_even(const p256_int* a) { return !(P256_DIGIT(a, 0) & 1); } in p256_is_even() 196 p256_digit top = P256_DIGIT(a, P256_NDIGITS - 1); in p256_shl() 200 p256_digit accu = (P256_DIGIT(a, i) << n); in p256_shl() [all …]
|
D | p256_ec.c | 1188 out[i] = P256_DIGIT(&in_shifted, 0) & kBottom29Bits; in to_montgomery() 1191 out[i] = P256_DIGIT(&in_shifted, 0) & kBottom28Bits; in to_montgomery()
|
/system/core/include/mincrypt/ |
D | p256.h | 153 #define P256_DIGIT(x,y) ((x)->a[y]) macro
|