liveBook · Manning

Key size

As explained in Software Security for Developers

Key size is the number of bits in a cryptographic key and determines the size of the key space available to an algorithm.

RSA modulus size is the length of an RSA key, measured in bits. It determines the scale of the mathematical numbers used by RSA and strongly affects security and performance. section 6.3.1 section 7.3

Larger RSA keys generally provide stronger security, but arithmetic on them requires more computation, consumes more battery on mobile devices, and can increase operating costs. Choose the minimum length required by current corporate security standards. section 6.3.1 section 7.3

Use these practical reference points when selecting an RSA modulus size:

  • Treat RSA 2048-bit keys as secure today, while preferring 3,072- or 4,096-bit keys when stronger margins are required. section 6.3.1
  • Recognize 4,096-bit RSA keys as substantially larger and slower than shorter keys, especially on constrained devices. section 7.3
  • Compare RSA with ECC before starting a new application: a 256-bit ECC key is described as offering security comparable to RSA-3072 with better performance. section 7.3

Choosing between RSA key sizes

A service using RSA 2048-bit keys meets the stated current security level. A team requiring a larger security margin can select RSA 3072 or RSA 4096, accepting higher computational cost and checking corporate guidance first. section 6.3.1 section 7.3

How Software Security for Developers covers it

How deep it goes
Explains key-length tradeoffs and recommendations, but stops short of deriving RSA security or specifying implementation code.
Examples
Compares RSA 2048-, 3072-, and 4096-bit keys with a 256-bit ECC key.
What you can do after
Apply it via RSA configuration choices that follow current security standards and acknowledge performance costs.
How it connects
Connects RSA modulus size with RSA-OAEP, PKCS#1 v1.5, ECC, TLS, SSH, and quantum computing.

Also explained in

Compare how 2 books explain key size →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Software Security for Developers. The section links point to the parts of the book it draws on.