Solve ax+by=GCD(a,b) for RSA Algorithm Cryptography

  • Context: Comp Sci 
  • Thread starter Thread starter shivajikobardan
  • Start date Start date
  • Tags Tags
    Algorithm Cryptography
Click For Summary
SUMMARY

The discussion focuses on solving the equation ax + by = GCD(a, b) using Euclid's Algorithm, which is essential for RSA algorithm cryptography. Participants express a desire for a mechanical method to derive the coefficients x and y alongside the GCD, rather than relying on memorization. Key resources shared include links to Math Stack Exchange and Crypto Stack Exchange for further clarification and examples. The conversation highlights the need for practical techniques and examples to better understand the application of Euclid's Algorithm in cryptographic contexts.

PREREQUISITES
  • Understanding of Euclid's Algorithm for GCD calculation
  • Familiarity with RSA algorithm fundamentals
  • Basic knowledge of Bézout's identity
  • Ability to interpret mathematical proofs and examples
NEXT STEPS
  • Study the implementation of Euclid's Algorithm in Python or another programming language
  • Explore the concept of Bézout coefficients in detail
  • Research the relationship between GCD and modular arithmetic in RSA
  • Examine practical examples of RSA key generation using Euclid's Algorithm
USEFUL FOR

This discussion is beneficial for cryptographers, computer scientists, and students studying cryptography who seek to deepen their understanding of RSA algorithm mechanics and the mathematical principles behind it.

shivajikobardan
Messages
637
Reaction score
54
Homework Statement
What's the technique used by this teacher to solve ax+by=GCD(a,b) in RSA Algorithm-Cryptography?
Relevant Equations
RSA Algorithm CT= (PT)^e mod n and PT=(CT)^d mod n


It starts at 6:16
TbO_9XvqKKZSAidxFT5FhXIqcLz02P8DtBbZJSRxixIFEj0ESs.png

It's the part where he's pointing his hand in this picture. I didn't get it although it's pretty mechanical, so I'd like to learn that technique as this is really useful in RSA algorithm(rather than having to memorize some values). I've been searching for a method like that since I saw this problem(been months) but could not find a technique like that. And it was always about just do it rather having any mechanical method like this one. So, I want to learn this.
Or, if you have any other simple methods to solve this equation, please tell me
 
Physics news on Phys.org
I believe this is Euclid's Algorithm. It is generally used to find GCD(a,b) but will obtain x and y in the process.
 
  • Like
Likes   Reactions: shivajikobardan
pasmith said:
I believe this is Euclid's Algorithm. It is generally used to find GCD(a,b) but will obtain x and y in the process.
I'm trying to figure out a way to replicate his way. I found this
https://math.stackexchange.com/questions/691916/what-is-the-link-between-the-quotient-and-the-bézout-coefficients-in-the-extende

https://crypto.stackexchange.com/qu...lic-exponent-and-the-modulus-fact/54479#54479

But could not get it clearly with a table.

But I'm trying to find some examples around it. PS there are some cases of what happens when the number is greater or lesser than something, I want to know about it. Do share if you've any information regarding this thing.

Thanks for the information!
 
Last edited:

Similar threads

  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
7
Views
2K
  • · Replies 20 ·
Replies
20
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 9 ·
Replies
9
Views
4K