Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a function ecdsaverify ( q , A , B , G , p , Q , m , signature ) that takes as input

Write a function ecdsaverify(q,A,B,G,p,Q,m,signature) that takes as input
prime p and q, creates the elliptic curve modulo q
E:y2=x3+Ax+B
G=(x,y) a pair of integers that are the x,y coordinates of the (base) point G on E that has prime order p(return 'Invalid input' if this is not the case)
Q=(x',y') a pair of integers that are the x,y coordinates of the public key point Q on E(it needs to be a multiple of G, but you are not asked to check this as it would involve solving
ECDLP)
the message m as a SAGE integer
the signature (r,s) as a pair of SAGE integers
and returns True or False depending on the signature being valid or not.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine M. Ricardo

1st Edition

0763733148, 978-0763733148

More Books

Students also viewed these Databases questions

Question

7.1 Define selection and discuss its strategic importance.

Answered: 1 week ago