I want to know about these tags in RSA Encryption by private Key. when I use this code:

using (var provider = new RSACryptoServiceProvider(keySize))
        publicKey = provider.ToXmlString(false);
        privateKey = provider.ToXmlString(true);

It create this xml:


I know that $p$ and $q$ are the primes number, but I dont know what are DP and DQ and why we need to InversQ and else...

is anyone explain these items for encryption?


DP is $d\bmod{p-1}$, similarly DQ is $d\bmod{q-1}$. InverseQ is $q^{-1}\bmod{p}$.

These are used in applying the Chinese Remainder Theorem to RSA decryption, which is an optimization technique.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.