Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
RSA cryptosystem
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Proof using Euler's theorem=== Although the original paper of Rivest, Shamir, and Adleman used Fermat's little theorem to explain why RSA works, it is common to find proofs that rely instead on [[Euler's theorem]]. We want to show that {{math|''m<sup>ed</sup>'' β‘ ''m'' (mod ''n'')}}, where {{math|1=''n'' = ''pq''}} is a product of two different prime numbers, and {{mvar|e}} and {{mvar|d}} are positive integers satisfying {{math|''ed'' β‘ 1 (mod ''φ''(''n''))}}. Since {{mvar|e}} and {{mvar|d}} are positive, we can write {{math|1=''ed'' = 1 + ''hφ''(''n'')}} for some non-negative integer {{mvar|h}}. ''Assuming'' that {{mvar|m}} is relatively prime to {{mvar|n}}, we have <math display="block">m^{ed} = m^{1 + h\varphi(n)} = m (m^{\varphi(n)})^h \equiv m (1)^h \equiv m \pmod{n},</math> where the second-last congruence follows from [[Euler's theorem]]. More generally, for any {{mvar|e}} and {{mvar|d}} satisfying {{math|''ed'' β‘ 1 (mod ''λ''(''n''))}}, the same conclusion follows from [[Carmichael function#Carmichael's theorem|Carmichael's generalization of Euler's theorem]], which states that {{math|''m''<sup>''λ''(n)</sup> β‘ 1 (mod ''n'')}} for all {{mvar|m}} relatively prime to {{mvar|n}}. When {{mvar|m}} is not relatively prime to {{mvar|n}}, the argument just given is invalid. This is highly improbable (only a proportion of {{math|1/''p'' + 1/''q'' β 1/(''pq'')}} numbers have this property), but even in this case, the desired congruence is still true. Either {{math|''m'' β‘ 0 (mod ''p'')}} or {{math|''m'' β‘ 0 (mod ''q'')}}, and these cases can be treated using the previous proof.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)