Reasons and Requirements for Cryptography
Cryptography protects data that other controls cannot, such as data crossing untrusted networks or stored on devices that may be stolen. This lesson explains the services cryptography provides, how data sensitivity and regulation drive its use, and the role of entropy and quantum technology.
Learning outcomes
After completing this lesson, you will be able to:
- Identify the services cryptography provides.
- Explain Kerckhoffs's principle.
- Describe how data sensitivity and regulation drive cryptography.
- Explain entropy, quantum key distribution and post-quantum cryptography.
What cryptography provides
Cryptography uses mathematical algorithms to protect information. It provides four services. Confidentiality: encryption turns readable plaintext into unreadable ciphertext that only holders of the right key can decrypt. Integrity: hashes and message authentication codes reveal whether data has changed. Authenticity: message authentication codes and digital signatures prove where data came from. Non-repudiation: digital signatures prevent the signer from credibly denying an action.
Cryptography protects data in three states: at rest (disks, databases, backups), in transit (network traffic) and increasingly in use (confidential computing, which protects data in memory using hardware-based trusted execution environments). It does not, by itself, provide availability; lost keys can make data permanently unavailable.
The following diagram matches each security requirement to the cryptographic service that meets it.

What each technique provides
Keys, algorithms and Kerckhoffs's principle
A cryptographic algorithm (or cipher) is the procedure; the key is the secret value that controls it. Kerckhoffs's principle states that a cryptosystem should be secure even if everything about it except the key is public. Modern algorithms such as AES are published and studied worldwide; their security rests entirely on the secrecy and strength of keys. "Security through obscurity", relying on a secret algorithm, is weak because secrets leak and unreviewed algorithms often contain flaws. This is why organisations never invent their own cryptography and why key management is as important as the choice of algorithm.
Data sensitivity
How strongly data must be protected depends on its classification. The SSCP outline names three categories of sensitive data.
- Personally identifiable information PII
- Information that identifies or can be linked to an individual, such as names with identification numbers, contact details and financial information.
- Protected health information PHI
- Health information linked to an individual, regulated in the United States by HIPAA.
- Intellectual property IP
- Trade secrets, designs, formulas, source code and other proprietary information whose disclosure harms competitive position.
Classification policy states where encryption is required (for example, all restricted data at rest and in transit, and all data on laptops and removable media), which algorithms and key lengths are acceptable, and how keys are managed. Some breach-notification laws treat lost data that was strongly encrypted, with keys not compromised, as not requiring notification, which is a strong incentive to encrypt.
Regulatory and industry requirements
Regulations and standards require cryptography for specific data. The following table summarises the examples most relevant to the SSCP.
| Requirement | Cryptographic expectations |
|---|---|
| PCI DSS | Render stored primary account numbers unreadable (strong cryptography, truncation, tokenisation or keyed hashing); use strong cryptography for card data over open networks; document and manage keys |
| ISO/IEC 27001 | Annex A controls on the use of cryptography and key management, based on a policy |
| HIPAA Security Rule | Encryption of electronic PHI as an addressable safeguard at rest and in transit |
| GDPR | Encryption named as an appropriate measure for security of processing |
| FIPS 140-3 | Validation of cryptographic modules for US government use |
Industry best practice is to use well-reviewed standard algorithms and current protocol versions, to retire deprecated ones (DES, 3DES, RC4, MD5 and SHA-1 for signatures, SSL and early TLS), and to maintain an inventory of where cryptography is used so that it can be upgraded when algorithms weaken, a property called crypto-agility.
Requirements for cryptography
Entropy, quantum cryptography and post-quantum algorithms
Entropy is unpredictability. Keys, initialisation vectors, nonces and salts must be generated by a cryptographically secure pseudo-random number generator (CSPRNG) seeded with enough entropy from unpredictable sources, such as hardware noise. Weak randomness has broken real systems: devices that generated keys immediately after boot, before gathering entropy, produced keys that attackers could predict, and duplicate nonces have exposed private keys. A strong algorithm with a predictable key is weak.
Quantum cryptography uses the physics of quantum mechanics. Its best-known application is quantum key distribution (QKD), which exchanges keys using photons; any eavesdropping disturbs their quantum states and is detected. QKD needs specialised hardware and dedicated links, so its use is limited. A separate issue is the threat that large quantum computers pose: Shor's algorithm would break RSA, Diffie-Hellman and elliptic curve cryptography, and Grover's algorithm would weaken symmetric keys, which longer keys such as AES-256 counter. Because data captured today could be decrypted later ("harvest now, decrypt later"), NIST published post-quantum cryptography standards in 2024: FIPS 203 (ML-KEM for key establishment), FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA) for digital signatures.
Entropy and quantum
Matching the service
Which cryptographic service does each requirement need? (1) A lost laptop must not expose customer data. (2) A downloaded software update must be shown to come from the vendor and be unaltered. (3) Two systems sharing a secret must detect tampering with messages between them.
(1) Confidentiality at rest: full disk encryption. (2) Integrity and authenticity, with non-repudiation: a digital signature from the vendor's private key. (3) Integrity and authenticity between key holders: an HMAC with the shared secret.
A predictable key
An IoT camera generates its TLS private key on first boot, before its random number generator has collected entropy. Researchers find that thousands of cameras share the same few keys. What went wrong?
The keys were generated with insufficient entropy, so the "random" values were predictable and repeated. Attackers who obtain one camera's key can impersonate or decrypt others. The manufacturer must generate keys with a properly seeded CSPRNG, or a hardware random source, and replace the affected keys through a firmware update.
What does Kerckhoffs's principle say?
Show answer
A cryptosystem should remain secure even if everything about it except the key is public, so security rests on the key, not on keeping the algorithm secret.
Exam Tips
Remember for the exam
- Security rests on the secrecy of the key, not the algorithm (Kerckhoffs's principle).
- Encryption provides confidentiality, not integrity or non-repudiation by itself.
- Quantum computers threaten RSA and ECC; AES-256 remains strong; NIST post-quantum standards are FIPS 203 to 205.