|
|
@ -61,11 +61,11 @@ public: |
|
|
|
kcv.resize(hashSize); |
|
|
|
kcv.resize(hashSize); |
|
|
|
G xP; |
|
|
|
G xP; |
|
|
|
xP.clear(); |
|
|
|
xP.clear(); |
|
|
|
for (size_t i = 1; i <= (int)hashSize; i++) { |
|
|
|
for (int i = 1; i <= (int)hashSize; i++) { |
|
|
|
xP += P; |
|
|
|
xP += P; |
|
|
|
xP.normalize(); |
|
|
|
xP.normalize(); |
|
|
|
kcv[i - 1].key = uint32_t(*xP.x.getUnit()); |
|
|
|
kcv[i - 1].key = uint32_t(*xP.x.getUnit()); |
|
|
|
kcv[i - 1].count = xP.y.isOdd() ? i : -1; |
|
|
|
kcv[i - 1].count = xP.y.isOdd() ? i : -i; |
|
|
|
} |
|
|
|
} |
|
|
|
nextP = xP; |
|
|
|
nextP = xP; |
|
|
|
G::dbl(nextP, nextP); |
|
|
|
G::dbl(nextP, nextP); |
|
|
|