Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Scalar Multiplication over extension field. I want to perform scalar multiplication but when i will take some random point and order of that point as scalar it gives me error.

Scalar Multiplication over extension field. I want to perform scalar multiplication but when i will take some random point and order of that point as scalar it gives me error.

Scalar Multiplication over extension field. I want to perform scalar multiplication but when i will take some random point and order of that point as scalar it gives me error.

I want to perform scalar multiplication but when i will take some random point and order of that point as scalar it gives me error.

import time
import sys
from sage.all import *
p = (2^113); p

F1.<x, y> = GF(2)[]

F.<a> = GF(2^113, 'a', modulus=x^113+x^9+1); F.modulus(); F
A = F.fetch_int(0x003088250CA6E7C7FE649CE85820F7); A
B = F.fetch_int(0x00E8BEE4D3E2260744188BE0E9C723); B

E = EllipticCurve(F, (1, A, 0, 0, B)); E
G = E.random_point()
n = E.order()
K = randint(1, n - 1)
R = K*G