Searched defs:P256_BITSPERDIGIT (Results 1 - 2 of 2) sorted by relevance

/system/core/include/mincrypt/
H A Dp256.h39 #define P256_BITSPERDIGIT 32 macro
96 // b := a << (n % P256_BITSPERDIGIT)
100 // b := a >> (n % P256_BITSPERDIGIT)
/system/core/libmincrypt/
H A Dp256.c59 return (P256_DIGIT(scalar, bit / P256_BITSPERDIGIT)
60 >> (bit & (P256_BITSPERDIGIT - 1))) & 1;
82 carry >>= P256_BITSPERDIGIT; local
99 borrow >>= P256_BITSPERDIGIT; local
104 assert((borrow >> P256_BITSPERDIGIT) == 0);
120 borrow >>= P256_BITSPERDIGIT; local
137 carry >>= P256_BITSPERDIGIT; local
198 n %= P256_BITSPERDIGIT;
201 accu |= (P256_DIGIT(a, i - 1) >> (P256_BITSPERDIGIT - n));
206 top = (p256_digit)((((p256_ddigit)top) << n) >> P256_BITSPERDIGIT);
246 borrow >>= P256_BITSPERDIGIT; local
259 borrow >>= P256_BITSPERDIGIT; local
272 carry >>= P256_BITSPERDIGIT; local
285 carry >>= P256_BITSPERDIGIT; local
[all...]

Completed in 57 milliseconds