CRT Decryption Speedup Calculator
Enter the CRT parameters p, q, dp, dq and the ciphertext to recover the message.
Result
How to use
- Enter your values in the fields above.
- Press Calculate to see your result instantly.
- Use the Share button to copy a link to your result.
About this calculator
RSA decryption normally computes m = c^d mod n directly, an expensive modular exponentiation with d often 2048 bits long. The Chinese Remainder Theorem (CRT) optimization splits this into two smaller exponentiations modulo the prime factors p and q instead: m_p = c^dp mod p and m_q = c^dq mod q, using the reduced exponents dp = d mod (p−1) and dq = d mod (q−1).
Because p and q are each roughly half the bit-length of n, these two exponentiations are individually much cheaper, and recombining m_p and m_q with Garner's formula restores the full plaintext m. The net effect is close to a 4× speedup over plain modular exponentiation — this is why CRT-based decryption is the default implementation choice in TLS stacks and crypto libraries like OpenSSL, and why RSA private keys are usually stored with p, q, dp, dq and qInv rather than just d.
Was this helpful?
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
No calculators found
Comments (0)