Score:2

Why is $d = e^{-1} \mod \phi(N) \equiv e^{\phi(N)-1} \mod \phi(N)$ and not commonly used in RSA key generation?

ao flag

On some lecture slides regarding to RSA-Encryption, the formula for calculation of the private key is given as $d = e^{-1} \equiv e^{\phi(N)-1} \mod \phi(N)$. The second equation is justified by the fact that $gcd(e,\phi(N))=1$.

My questions:

1.How does the second equality come about? I know, that Eulers Theorem shows, that $a^{\phi(b)} \equiv 1 \mod b$ for coprime $a,b$. So why we dont need to write $e^{\phi(\phi(N))-1} \mod \phi(N)$?

  1. With this forumula we can calculate $d$ easily, aren't we? So it is common, to use the Euklid's-Algorithm? It needs much more calculation steps?

I hope someone can help me to understand this better.

Score:2
my flag

1.How does the second equality come about? I know, that Eulers Theorem shows, that $a^{\phi(b)} \equiv 1 \mod b$ for coprime $a,b$. So why we dont need to write $e^{\phi(\phi(N))-1} \mod \phi(N)$?

Actually, you are correct - the slides were wrong.

  1. With this forumula we can calculate $d$ easily, aren't we? So it is common, to use the Euklid's-Algorithm? It needs much more calculation steps?

Well, to use the relation you cite, we would need to know the value $\phi(\phi(N))$, which means we would know the complete factorization of $p-1, q-1$. Depending on the prime generation method, we might not (and the ones that would give us that are take much more time or are more complex). Euclid's algorithm, on the other hand, doesn't need that information, and so it's much simpler.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.