diff --git a/ECC Over GF(2m)/sage/Point_validation_affine.sage b/ECC Over GF(2m)/sage/Point_validation_affine.sage new file mode 100644 index 0000000000000000000000000000000000000000..09ffbaffafc375f6b3cf7dafc96f9dab436ead79 --- /dev/null +++ b/ECC Over GF(2m)/sage/Point_validation_affine.sage @@ -0,0 +1,23 @@ +def Pointvalidation_affine(x,y,a,b,n,PRECISION): + +x_poly= str_to_poly(x) +y_poly=str_to_poly(y) + +print 'x_poly=',x_poly +print 'y_poly=',y_poly + +#Calculation of resultant coordinates +L_poly = ( (y_poly ) *(y_poly ) ) + ( (x_poly ) * (y_poly ) ) + +R_poly = ( (x_poly ) * (x_poly ) * (x_poly ) ) + ((x_poly ) * (x_poly ) * a ) + b + +L_poly-R_poly = 0 + +print 'L=',poly_to_str(L_poly) +print 'R=',poly_to_str(R_poly) +print 'L-R=', poly_to_str(L_poly-R_poly) + + + + #where the equation should satisfy with the parameters to validate point on curve + # y.y + xy = x.x.x +a.x.x + b \ No newline at end of file