Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
embedded
Embedded Project group 6
Commits
e710b668
Commit
e710b668
authored
Jul 23, 2019
by
Naga Suramouli
Browse files
Upload New File
parent
05d46ad8
Changes
1
Hide whitespace changes
Inline
Side-by-side
ECC Over GF(2m)/sage/Point_validation_affine.txt
0 → 100644
View file @
e710b668
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment