Question: Write a Python program to implement ECC as per below input / output . Program should take user input and give output as per below

Write a Python program to implement ECC as per below input/output.
Program should take user input and give output as per below test cases.Both the test cases should pass.
inputs are a, b, p, message, nB, nA,( two private keys) and a generator point G. Outputs are encrypted and decrypted messages
case=1
input=1
4
23
7,3
6
15
0,2
output=(18,14)(13,11)
7,3
case=2
input=-1
188
751
443,253
85
113
0,376
output=(34,633)(217,606)
443,253

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!