From e710b6689c21d29c130236cd792ae13ba38ff1c0 Mon Sep 17 00:00:00 2001
From: Naga Suramouli <naga.suramouli@stud.th-deg.de>
Date: Tue, 23 Jul 2019 22:57:56 +0200
Subject: [PATCH] Upload New File

---
 .../sage/Point_validation_affine.txt          | 23 +++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 ECC Over GF(2m)/sage/Point_validation_affine.txt

diff --git a/ECC Over GF(2m)/sage/Point_validation_affine.txt b/ECC Over GF(2m)/sage/Point_validation_affine.txt
new file mode 100644
index 0000000..09ffbaf
--- /dev/null
+++ b/ECC Over GF(2m)/sage/Point_validation_affine.txt	
@@ -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
-- 
GitLab