RSA With Real Keys

Open a real RSA key file, see how big its numbers are, encrypt without padding and watch a small exponent give the message away, then add OAEP and sign with PKCS#1 v1.5 and PSS. Test keys only, 512 bits, far too small to use.

Keys and Textbook RSA

What a private key file holds, how its size is counted, raw RSA on a real key, and why a small public exponent gives a message away.

  1. Key Anatomy

    what is inside an RSA private key file

  2. Modulus Size in Bits

    counting the bits of a modulus written in hexadecimal

  3. Textbook RSA on a Real Key

    raw RSA on numbers that do not fit a program

  4. A Small Exponent Is a Cube Root

    raw RSA with e equal to 3 and a short message

Padding and Signatures

OAEP makes encryption random, PKCS#1 v1.5 signs a padded digest, PSS adds a salt, and the last page says what none of this shows.

  1. OAEP Adds Randomness

    random padding for RSA encryption, and its size limit

  2. Sign the Digest

    what an RSA signature covers and how it is checked

  3. PSS and the Salt

    the probabilistic signature padding and its salt

  4. Honesty Boundary

    what the RSA pages show, and what they leave out