Proof of exchange and use of key pairs in RSA Algorithms

Source: Internet
Author: User

[Preface] A few notes in RSA Algorithm Research
RSA algorithm (Class C style description ):
Set P and Q to two prime numbers;
N = P * Q;
T = (P-1) * (Q-1 );
Find a certain number of E to meet the requirements of E and T (the number of M-grams between E and T is only 1 );
Find a number D to satisfy (E * D) % T = 1;
Then: (D, N) and (E, N) are interchangeable encryption (decryption) key pairs.
Set the encrypted plaintext to M and the encrypted ciphertext to C. The following process assumes that (E, N) is the public key for encryption and (D, N) is the private key for decryption.
Encryption: C = (E Power of M) % N;
Decryption: M = (E Power of C) % N;
It proves that (D, N) and (E, N) are interchangeable encryption (decryption) key pairs:
If (D, N) and (E, N) are interchangeable, the following two conditions must be met:
1. (D * E) % T = 1;
Proof: (E * D) % T) = (D * E) % T );
2. D and T need to be satisfied
Proof: false certificates D and T are not mutually exclusive, which can be described as follows:
D = a1 * X;
T = a2 * X;
By (D * E) % T = 1;
==> (A1 * X * E) % (a2 * X) = 1;
==> A1 * X * E = B * a2 * X + 1;
==> (A1 * E-B * a2) * E = 1;
=> E can only = 1, and a1 * E-B * a2 = 1, for example, E = 1, that is, the anti-evidence fails.
Proof complete

Author: Zhang Yu (data recovery )"

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.