CYBER LIBRARY
Explore the bootcamp
Security essentialsIntermediate

AES

A symmetric block cipher whose safe use depends on its mode and implementation.

3 min readUpdated 12 Oct 20267 connections
Markdown

The idea

The Advanced Encryption Standard is a widely used symmetric block cipher with a 128-bit block size and key sizes of 128, 192, or 256 bits. A complete encryption scheme needs a mode or construction, key generation, parameter handling, and appropriate integrity protection. AES-GCM is an authenticated-encryption construction; using it requires correct nonce handling. Prefer maintained cryptographic libraries and reviewed protocols over implementing the cipher yourself.

In practice

An application uses a library’s authenticated-encryption API, generates keys securely, and ensures a nonce is not reused with the same GCM key.

A common misunderstanding

“AES-256” alone does not describe a secure system. Unsafe key storage or nonce reuse can undermine protection.

Check your understanding

What else should an encryption design specify besides key size?

Think it through: The construction, key lifecycle, nonce requirements, authentication, and error handling.

The cipher is one component of a design

A fictional archival service encrypts stored documents. Choosing AES identifies a block-cipher primitive, but the service still needs to define how arbitrary documents are processed, how tampering is detected, and how keys are recovered when an authorized user needs an old record. These are system decisions rather than properties implied by the algorithm's name.

Block size and key size describe different things. AES always operates on 128-bit blocks, while the supported key lengths differ. A larger key does not make each block larger or repair a flawed mode of operation. Compare complete supported constructions and their requirements rather than treating the largest number as the entire security decision.

Authenticated encryption should produce a clear success or failure when protected content is opened. The application must handle failed verification without using unauthenticated plaintext as if it were valid. Nonce management, associated data, and key rotation need to follow the chosen API and construction exactly.

Specify an archive record

For a paper exercise, list the information a document record needs: the encrypted content, required public parameters, authentication information, and an identifier for the key version. State which values are secret and which must remain correctly associated with the record. Use fictional content and avoid designing a new cipher.

Then consider a lost key and an accidentally reused nonce. These failures have different consequences and recovery options. A useful encryption design documents prevention and operational response for both. Use a maintained high-level cryptographic library, verify its supported parameters, and test restoration of older records before retiring a key. Strong mathematics cannot recover content from an unavailable key or compensate for violating the construction's requirements.

Keep exploring

GO TO THE SOURCE

References & further reading

Original explanations, with primary references for deeper study.

NIST: Cryptographic Standards and GuidelinesNIST FIPS 197: Advanced Encryption StandardNIST SP 800-38D: GCM and GMAC
EXPLORE THIS IDEA’S CONNECTIONS

A small part of a bigger picture.

6 notes · 10 connections
100%
AES · depth 1
Drag to pan · Pinch or use +/− to zoom · Click to preview · Double-click to read
Browse notes as a list (6)
FOLLOW ANOTHER THREADExplore the rest of the library
Start with a concept. Follow its connections.
Detection & responseAbuse Elevation Control MechanismElevation-control abuse bypasses or misuses mechanisms governing privileged execution.Making change happenAcceptance criteriaDefine observable conditions for a deliverable to be accepted.Security essentialsAccess controlUnderstand subjects, resources, permissions, and enforcement through a shared-drive example, including how access changes over time.Detection & responseAccess Token ManipulationAccess token manipulation changes or adopts operating-system security contexts.Risk & resilienceAccount Access RemovalAccount access removal disrupts legitimate users by changing, deleting, or restricting their identities.Evidence & investigationAccount DiscoveryAccount discovery enumerates identities available in a system or environment.Detection & responseAccount ManipulationAccount manipulation changes identity settings to preserve or expand access.Adversarial thinkingAcquire InfrastructureInfrastructure acquisition obtains domains, servers, or other resources used to support operations.Adversarial thinkingActive ScanningActive scanning probes target infrastructure to learn reachable services or weaknesses.Security essentialsAdversary in the middleAn intermediary may observe or alter a communication path.Security essentialsAESA symmetric block cipher whose safe use depends on its mode and implementation.Making change happenAgile deliveryUse short feedback cycles to adapt toward a useful outcome.