Cryptography · Study deck

The Layered Encryption Model

Picture a health sensor sending a private reading through a home bridge to a care service.

Shield Shelly is your guide for this deck.

encryption-architecturee1-e5trust-boundaries
Shield Shelly, the module guide, in a scene from this chapter.
iotclass.org

After studying this chapter

Learning objectives

You will be able to:

  • Explain: Handing an open letter to a trusted assistant who reads it, acts on it, then forwards it is a different model: useful when you trust the assistant, but the assistant has seen everything.
  • Explain: A design that cannot rotate or revoke eventually becomes a design that trusts old secrets forever, so E5 decisions about storage, ownership, and clocks must be made at the start.
  • Explain: The deeper layer explains the mechanism that ties the whole model together: every level terminates somewhere, and the component where a protected channel terminates can read the data.
iotclass.org

Major section

Start by Asking Who May Read the Plaintext

A locked radio link helps, but the reading may become plain text again at each stop.

  • The design must name every reader and every point where protection ends.
  • A payload means the useful data inside one message.
  • A gateway means the bridge between local devices and a wider network.

Key terms

Transport layer security
Transport layer security means protection for a network stream; it is called TLS.
Encryption architecture
Encryption architecture is the discipline of deciding, for each of those hops, which component is actually allowed to read the data in the clear.
The E1-E5 architecture separates link, device-gateway, device-cloud, transport, and key-lifecycle protection so each encryption choice maps to a distinct trust boundary.
The E1-E5 architecture separates link, device-gateway, device-cloud, transport, and key-lifecycle protection so each encryption choice maps to a distinct trust boundary.
iotclass.org

Major section

Start by Asking Who May Read the Plaintext (continued)

A message broker means a service that passes messages between senders and receivers.

  • Transport layer security means protection for a network stream; it is called TLS.
  • Datagram Transport Layer Security (DTLS) protects separate network messages.
  • Urgent safe action must still work locally.
  • This runway does not prove a cipher, device, or service secure.
iotclass.org

Major section

Start by Asking Who May Read the Plaintext (continued)

Five labels that all end at one box protect one box.

  • Encryption architecture is the discipline of deciding, for each of those hops, which component is actually allowed to read the data in the clear.
  • E1 protects the local link hop.
  • Every joined node on a shared key can still read the hop.
iotclass.org

Major section

Start by Asking Who May Read the Plaintext (continued)

E3 keeps a payload opaque all the way to the cloud or application, so gateways and brokers only forward ciphertext.

  • E5 keeps the keys behind all of this provisioned, rotated, revoked, and recoverable.
  • The goal is not "more encryption everywhere"; it is encryption matched to trust boundaries.
  • If you only need the intuition, this layer is enough: pick encryption levels by trust boundary, not by habit.
iotclass.org

Major section

Start by Asking Who May Read the Plaintext (continued)

A third-party gateway that should only route gets object protection (E3) instead. "We use TLS to the cloud" (E4) protects the internet leg.

  • Adding more layers that all terminate at the same component adds cost without adding protection.
  • Encryption architecture is choosing, deliberately, which couriers are sealed out and which are trusted readers.
  • At each termination point, ask who receives plaintext and which keys make that possible.
iotclass.org

Major section

Start by Asking Who May Read the Plaintext (continued)

Handing an open letter to a trusted assistant who reads it, acts on it, then forwards it is a different model: useful when you trust the assistant, but the assistant has seen everything.

  • That guided route connects the opening plaintext-owner question to the chapter's later selection workflow.
  • The One-Minute View Start from plaintext ownership For every hop, decide which component may decrypt and which must only forward ciphertext.
  • Levels are boundaries, not a count E1 link, E2 device-gateway, E3 device-cloud, E4 transport, E5 lifecycle each protect a different boundary.
iotclass.org

Major section

Start by Asking Who May Read the Plaintext (continued)

Transport is not end-to-end TLS or DTLS (E4) protects a session between two endpoints.

  • If a gateway terminates it, the gateway still sees plaintext unless E3 keeps the payload opaque.
  • Beginner Examples These examples connect protection levels to what each part of the system can read.
  • A local radio link with a join-controlled key (E1) keeps nearby strangers from reading or joining.
iotclass.org

Major section

Map the Path and Name the Plaintext Owners

The practical job is to turn a stack diagram into a set of boundary decisions, each with evidence.

  • You walk the path, name who may decrypt at each step, choose the level that enforces that, then prove the wrong party is rejected.
  • At the destination, require the negative test appropriate to the selected claim.

Why it matters

The most common confusion is between E2 and E3, because both protect application payloads; the difference is where decryption is allowed to happen.

Each level answers a trust question along the path, and the release gate requires a negative test for every level that is selected.
Each level answers a trust question along the path, and the release gate requires a negative test for every level that is selected.
iotclass.org

Major section

Map the Path and Name the Plaintext Owners (continued)

E1 answers a local wireless-hop risk, E2 gives a trusted gateway per-device protection, and E3 keeps the payload opaque to that gateway.

  • This ordered choice connects the chapter's boundary map to the later layer-fit ledger.
  • Layer Fit Matrix The right level is the one that matches the threat boundary.
  • The local link members after a frame is accepted by the radio or network stack.
iotclass.org

Major section

Map the Path and Name the Plaintext Owners (continued)

Commissioning and join control, link-key policy, and capture showing non-members cannot read.

  • Gateway cannot decrypt a test payload; cloud rejects a tampered object; intermediaries hold no keys.
  • TLS or DTLS version policy, peer identity validation, trust anchors, and negative certificate tests.
  • Provisioning records, a rotation owner, a revocation path, a recovery test, and a decommission process.
iotclass.org

Major section

Termination Points Decide Who Can Read

The deeper layer explains the mechanism that ties the whole model together: every level terminates somewhere, and the component where a protected channel terminates can read the data.

  • Understanding termination is what separates real end-to-end protection from a chain of hop-by-hop sessions that merely looks end-to-end.

Key terms

Levels
Levels are complementary because they protect different boundaries, not because more is always better.

Why it matters

Defense in Depth, by Boundary Levels are complementary because they protect different boundaries, not because more is always better.

E5 carries keys through provisioning, use, rotation, revocation, recovery, and retirement, with evidence kept at each step so the architecture survives field operation.
E5 carries keys through provisioning, use, rotation, revocation, recovery, and retirement, with evidence kept at each step so the architecture survives field operation.
iotclass.org

Major section

Termination Points Decide Who Can Read (continued)

A shared link key gives no per-device accountability or targeted revocation.

  • A gateway-to-cloud TLS session (E4) is decrypted by the gateway on one side and the cloud on the other, so the gateway holds plaintext.
  • Evidence beside every stage makes the transition reviewable.
  • Omitting it lets any terminating intermediary read sensitive data.
iotclass.org

Major section

Termination Points Decide Who Can Read (continued)

Rotation adds a management exchange and storage for old and new credentials during overlap.

  • A sound architecture might use E1 plus E2 plus E4 for operational telemetry, and add E3 only for the sensitive fields that must never appear at the gateway.
  • The test for whether a level earns its place is simple: it must protect a boundary no other selected level already covers.
  • The local hop is unreadable to non-members of the link.
iotclass.org

Major section

Termination Points Decide Who Can Read (continued)

The release decision should rest on measurements from representative hardware, packet sizes, sleep schedules, and network loss.

  • E5 Is Part of the Architecture, Not an Afterthought Every level above depends on keys, and keys age.
  • The device and the gateway, which becomes a plaintext reader.
  • Trusting an untrusted gateway exposes payloads it should never read.
iotclass.org

Major section

Termination Points Decide Who Can Read (continued)

This lifecycle is E5's connection to every earlier layer: E1 through E4 remain trustworthy only while their keys have a valid, observable state.

  • A design that cannot rotate or revoke eventually becomes a design that trusts old secrets forever, so E5 decisions about storage, ownership, and clocks must be made at the start.
  • Keys can be provisioned, rotated, revoked, and recovered over time.
  • Retrofitting it late leaves a fleet trusting stale or unrevocable keys.
iotclass.org

Deck summary

Key takeaways

A locked radio link helps, but the reading may become plain text again at each stop.

  • A message broker means a service that passes messages between senders and receivers.
  • Five labels that all end at one box protect one box.
  • E3 keeps a payload opaque all the way to the cloud or application, so gateways and brokers only forward ciphertext.
  • A third-party gateway that should only route gets object protection (E3) instead. "We use TLS to the cloud" (E4) protects the internet leg.
iotclass.org

Retrieval practice

Recall check 1 of 3

Shield Shelly says: answer from memory, then check your reasoning.

Q1What is the first question an encryption architecture should answer, before choosing any algorithm?

AFor each hop, which component is actually allowed to read the plaintext.
BWhich cipher has the largest key size available on the device
CHow many encryption layers can be enabled at once
DWhether the cloud provider already encrypts data at rest
Show answer

Answer: A Plaintext ownership is the decision that selects the right level.

iotclass.org

Retrieval practice

Recall check 2 of 3

Shield Shelly says: answer from memory, then check your reasoning.

Q2A sensor sends health telemetry through a third-party gateway that should only route messages and must not see payload values. Beyond local link protection and gateway-to-cloud TLS, which level is the key addition?

AE3 device-to-cloud or object-level protection
BE2 device-to-gateway authenticated encryption
CE4 gateway-to-cloud TLS with server verification
DE5 only, because rotating keys removes the need to choose a plaintext owner
Show answer

Answer: A E3 is the level for payloads that must stay protected through a gateway, broker, queue, or proxy that is not allowed to read them.

iotclass.org

Retrieval practice

Recall check 3 of 3

Shield Shelly says: answer from memory, then check your reasoning.

Q3A design protects device-to-gateway traffic with E2, has the gateway decrypt it, then opens a separate gateway-to-cloud TLS session (E4), and claims the data is encrypted end-to-end from device to cloud. Why is that claim wrong?

AThe claim is valid because both network legs carry ciphertext and resist passive interception.
BBoth E2 and E4 are point-to-point and terminate at the gateway.
CIt is correct as long as both sessions use the same cipher suite
DIt is wrong only because TLS is weaker than the E2 link encryption
Show answer

Answer: B A chain of hop-by-hop sessions is not end-to-end.

iotclass.org

Print reference

Answers

Answer key.

  1. A · Plaintext ownership is the decision that selects the right level.
  2. A · E3 is the level for payloads that must stay protected through a gateway, broker, queue, or proxy that is not allowed to read them.
  3. B · A chain of hop-by-hop sessions is not end-to-end.
iotclass.org