You will get the complete calculator for ecc on https://graui.de/code/elliptic2/
But the above code will use if you want stepwise calculation.
- ecc_calculator is use for the finding all the points lies on the ecc.
- point_sum is use for the find the sum of two point P+Q.
- findNalpha is use for the value of
, Where n is {1,2,...p}.
- Find public key if private key
is given:
where
is public key.
- Find Encryption of
for random number k is:
= {
,
}. where
is cipher text.
- Decrypt cipher text(Recover
from
):
. Now consider after solving
and
is {
,
} - {
,
} is equal to {
,
} + {
,
}.
Note: In Code you will get x_1 which is equal to , and x__i is equal to
.
is generator(also called G).