| 352 | }; |
| 353 | |
| 354 | ECP::Point ECP::ScalarMultiply(const Point &P, const Integer &k) const |
| 355 | { |
| 356 | Element result; |
| 357 | if (k.BitCount() <= 5) |
| 358 | AbstractGroup<ECPPoint>::SimultaneousMultiply(&result, P, &k, 1); |
| 359 | else |
| 360 | ECP::SimultaneousMultiply(&result, P, &k, 1); |
| 361 | return result; |
| 362 | } |
| 363 | |
| 364 | void ECP::SimultaneousMultiply(ECP::Point *results, const ECP::Point &P, const Integer *expBegin, unsigned int expCount) const |
| 365 | { |