Overview
RSA works over integers modulo a product of two large primes. Public and private exponents are chosen so that modular exponentiation with one key can be inverted only with the matching key.
Uses modular arithmetic with a public key and private key for encryption or signatures.
Compact metadata for implementation and discovery.
RSA works over integers modulo a product of two large primes. Public and private exponents are chosen so that modular exponentiation with one key can be inverted only with the matching key.
Quick facts
Runtime and memory behavior at a glance.
Best
O(k^2)
Average
O(k^3)
Worst
O(k^3)
Space
O(k)
ciphertext = message^e mod nApplies modular exponentiation with the public exponent and modulus.
Show public and private keys being used for encryption or signatures.
Textbook RSA is a mathematical primitive; secure systems rely on padding, validation, and side-channel-resistant implementations.
What each reference supports for this entry.
IETF PKCS #1 reference for RSA cryptographic primitives and schemes.
Open sourceNIST Digital Signature Standard covering RSA, ECDSA, and EdDSA signature algorithms.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Cryptography · Specialized
RSA and ECDSA can both support digital signatures with different mathematics.
Compare with thisNumerical Methods · Foundation
RSA public and private operations are modular exponentiations.
Compare with thisCryptography · Foundation
RSA encryption, decryption, signing, and verification are modular exponentiation operations.
Compare with thisCryptography · Foundation
Both are public-key cryptographic primitives.
Compare with thisBoth are public-key cryptographic primitives.
RSA and ECDSA can both support digital signatures with different mathematics.