Skip to main content
grammar in title, misc. copyedits
Source Link
Ilmari Karonen
  • 46.5k
  • 5
  • 111
  • 187

In RSA, why is it important choosingto choose e so that it is coprime to φ(n)?

When choosing the public exponent e, it is stressed that $e$ must be coprime to $\phi(n)$, i.e. $\gcd(\phi(n), e) = 1$.

I know that a common choice is to have $e = 3$ (which requires a good padding scheme) or $e=65537$, which is slower but safer.

I also know that for two primes $p,q$, we have $\phi(pq) = (p - 1) (q - 1)$

Now, let me give a (simple) example:

Say I choose $e = 3$, and two random primes $p = 5$ and $q = 13$.

I can now compute $\gcd(3, \phi(5*13)) = 3$$\gcd(3, \phi(5 \cdot 13)) = 3$.

This reveals that $3$ and $\phi(n)$ are not coprime. I assume this could also happen for large values of $p$ and $q$, and likewise for another $e$. I therefore assume that the RSA algorithm must check that $\gcd(e, \phi(pq)) = 1$. But letslet's assume it doesn't.

How does RSA become vulnerable if $\gcd(e, \phi(pq)) \neq 1$?

In RSA, why is it important choosing e so that it is coprime to φ(n)?

When choosing the public exponent e, it is stressed that $e$ must be coprime to $\phi(n)$, i.e. $\gcd(\phi(n), e) = 1$.

I know that a common choice is to have $e = 3$ (which requires a good padding scheme) or $e=65537$, which is slower but safer.

I also know that for two primes $p,q$, we have $\phi(pq) = (p - 1) (q - 1)$

Now, let me give a (simple) example:

Say I choose $e = 3$, and two random primes $p = 5$ and $q = 13$.

I can now compute $\gcd(3, \phi(5*13)) = 3$.

This reveals that $3$ and $\phi(n)$ are not coprime. I assume this could also happen for large values of $p$ and $q$, and likewise for another $e$. I therefore assume that the RSA algorithm must check that $\gcd(e, \phi(pq)) = 1$. But lets assume it doesn't.

How does RSA become vulnerable if $\gcd(e, \phi(pq)) \neq 1$?

In RSA, why is it important to choose e so that it is coprime to φ(n)?

When choosing the public exponent e, it is stressed that $e$ must be coprime to $\phi(n)$, i.e. $\gcd(\phi(n), e) = 1$.

I know that a common choice is to have $e = 3$ (which requires a good padding scheme) or $e=65537$, which is slower but safer.

I also know that for two primes $p,q$, we have $\phi(pq) = (p - 1) (q - 1)$

Now, let me give a (simple) example:

Say I choose $e = 3$, and two random primes $p = 5$ and $q = 13$.

I can now compute $\gcd(3, \phi(5 \cdot 13)) = 3$.

This reveals that $3$ and $\phi(n)$ are not coprime. I assume this could also happen for large values of $p$ and $q$, and likewise for another $e$. I therefore assume that the RSA algorithm must check that $\gcd(e, \phi(pq)) = 1$. But let's assume it doesn't.

How does RSA become vulnerable if $\gcd(e, \phi(pq)) \neq 1$?

Tweeted twitter.com/#!/StackCrypto/status/410809371913097217
added 37 characters in body; edited tags
Source Link
Cryptographeur
  • 4.3k
  • 2
  • 29
  • 40

When chosingchoosing the public exponent e, it is stressed that e$e$ must be coprime to φ(n)$\phi(n)$, i.e. gcd(φ(n), e) = 1$\gcd(\phi(n), e) = 1$.

I know that a common choice is to have e = 3$e = 3$ (which requires a good padding scheme) or e = 65537$e=65537$, which is slower but safer.

I also know that for two primes p and q, it is true that φ(n) = (p - 1) (q$p,q$, we have - 1)$\phi(pq) = (p - 1) (q - 1)$

Now, let me give a (simple) example:

Say i choose e = 3

I then choose my$e = 3$, and two random primes p = 5$p = 5$ and q = 13$q = 13$.

I can now compute gcd(3, φ(5*13)) = 3$\gcd(3, \phi(5*13)) = 3$.

This reveals that 3$3$ and φ(n)$\phi(n)$ are not coprime. I assume this could also happen for large values of p$p$ and q$q$, and likewise for another e$e$. I therefore assume that the RSA algorithm must check that gcd(e, φ(pq)) = 1$\gcd(e, \phi(pq)) = 1$. But lets assume it doesn't.

How does RSA become vulnerable if gcd(e, φ(pq)) ≠ 1$\gcd(e, \phi(pq)) \neq 1$?

When chosing the public exponent e, it is stressed that e must be coprime to φ(n), i.e. gcd(φ(n), e) = 1.

I know that a common choice is to have e = 3 (which requires a good padding scheme) or e = 65537, which is slower but safer.

I also know that for two primes p and q, it is true that φ(n) = (p - 1) (q - 1)

Now, let me give a (simple) example:

Say i choose e = 3

I then choose my two random primes p = 5 and q = 13.

I can now compute gcd(3, φ(5*13)) = 3.

This reveals that 3 and φ(n) are not coprime. I assume this could also happen for large values of p and q, and likewise for another e. I therefore assume that the RSA algorithm must check that gcd(e, φ(pq)) = 1. But lets assume it doesn't.

How does RSA become vulnerable if gcd(e, φ(pq)) ≠ 1?

When choosing the public exponent e, it is stressed that $e$ must be coprime to $\phi(n)$, i.e. $\gcd(\phi(n), e) = 1$.

I know that a common choice is to have $e = 3$ (which requires a good padding scheme) or $e=65537$, which is slower but safer.

I also know that for two primes $p,q$, we have $\phi(pq) = (p - 1) (q - 1)$

Now, let me give a (simple) example:

Say I choose $e = 3$, and two random primes $p = 5$ and $q = 13$.

I can now compute $\gcd(3, \phi(5*13)) = 3$.

This reveals that $3$ and $\phi(n)$ are not coprime. I assume this could also happen for large values of $p$ and $q$, and likewise for another $e$. I therefore assume that the RSA algorithm must check that $\gcd(e, \phi(pq)) = 1$. But lets assume it doesn't.

How does RSA become vulnerable if $\gcd(e, \phi(pq)) \neq 1$?

Source Link
Martin
  • 341
  • 1
  • 3
  • 4

In RSA, why is it important choosing e so that it is coprime to φ(n)?

When chosing the public exponent e, it is stressed that e must be coprime to φ(n), i.e. gcd(φ(n), e) = 1.

I know that a common choice is to have e = 3 (which requires a good padding scheme) or e = 65537, which is slower but safer.

I also know that for two primes p and q, it is true that φ(n) = (p - 1) (q - 1)

Now, let me give a (simple) example:

Say i choose e = 3

I then choose my two random primes p = 5 and q = 13.

I can now compute gcd(3, φ(5*13)) = 3.

This reveals that 3 and φ(n) are not coprime. I assume this could also happen for large values of p and q, and likewise for another e. I therefore assume that the RSA algorithm must check that gcd(e, φ(pq)) = 1. But lets assume it doesn't.

How does RSA become vulnerable if gcd(e, φ(pq)) ≠ 1?