Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 3: Diffie-Hellman with an elliptic curve Grading criteria: correctness of code. a. The following code defines an elliptic curve (whatever that is!) over Fy

image text in transcribed

Problem 3: Diffie-Hellman with an elliptic curve Grading criteria: correctness of code. a. The following code defines an elliptic curve (whatever that is!) over Fy for a certain prime p. This has the structure of an abelian group; compute the order of this group. In [ ]: p = 9978800356194718687 E = EllipticCurve (GF(p), [0,1,0,2,1]) In [ ]: b. Check that the following element is a generator. In ]: g = E(9750899125122483489, 957860209725117949) In [ ]: c. Using E and g, perform the analogue of a Diffie-Hellman key exchange. Hint: the analogue of modular multiplication is denoted by addition, and the analogue of exponentiation gan is denoted n*g. In [ ]: 9+9+9, 349 In (): # Your code goes here a = randint(0, P-1) # Alice's secret b = randint(0, P-1) # Bob's secret # ... In [ ]: Problem 3: Diffie-Hellman with an elliptic curve Grading criteria: correctness of code. a. The following code defines an elliptic curve (whatever that is!) over Fy for a certain prime p. This has the structure of an abelian group; compute the order of this group. In [ ]: p = 9978800356194718687 E = EllipticCurve (GF(p), [0,1,0,2,1]) In [ ]: b. Check that the following element is a generator. In ]: g = E(9750899125122483489, 957860209725117949) In [ ]: c. Using E and g, perform the analogue of a Diffie-Hellman key exchange. Hint: the analogue of modular multiplication is denoted by addition, and the analogue of exponentiation gan is denoted n*g. In [ ]: 9+9+9, 349 In (): # Your code goes here a = randint(0, P-1) # Alice's secret b = randint(0, P-1) # Bob's secret # ... In [ ]

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

Database And Expert Systems Applications 24th International Conference Dexa 2013 Prague Czech Republic August 2013 Proceedings Part 1 Lncs 8055

Authors: Hendrik Decker ,Lenka Lhotska ,Sebastian Link ,Josef Basl ,A Min Tjoa

2013 Edition

3642402844, 978-3642402845

More Books

Students also viewed these Databases questions