Visual RFC.
ALL RFCs / RFC 8188
Read the RFC ↗
RFC 8188 / ENCRYPTED CONTENT

Reproduce the published examples

05

The RFC provides complete binary examples, shown using Base64url for presentation. Decoding and checking them makes byte counts and record framing concrete.

RFC 8188 · § 3.1EXAMPLE
4 / 4
Reproduce the published examplesThe RFC provides complete binary examples, shown using Base64url for presentation. Decoding and checking them makes byte counts and record framing concrete. Section 3.2 uses keyid a1, rs=25 and a 73-byte body: 23 header bytes plus two 25-byte records. Data is split 7 + 8; the first plaintext ends 01 00 and the final ends 02.Published binary examples, not live keysHeader: 23Record 0: 25Record 1: 25Data lengths: 7 + 8 = 15First ends 01 00; final ends 02Published second body: 73 bytesRFC8188 · chapter5 · state4 · published/illustrative data
04
Compare the two-record example

Section 3.2 uses keyid a1, rs=25 and a 73-byte body: 23 header bytes plus two 25-byte records. Data is split 7 + 8; the first plaintext ends 01 00 and the final ends 02.

Source for this drawing: RFC 8188 · Read RFC section 3.1 ↗

Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

A message needs an address.

Think of a packet as a small addressed envelope. Devices pass it onward; transport protocols decide what delivery promises an application gets.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

KEY POINT

On the wire these bodies contain binary octets, not the printed Base64url text. Section 3.1 uses an empty keyid and rs=4096.

  • On the wire these bodies contain binary octets, not the printed Base64url text. Section 3.1 uses an empty keyid and rs=4096.
  • The first published body decodes to 53 octets: header 21 plus encrypted record 32. Its data is the 15-byte text I am the walrus, followed by delimiter 02 before encryption.
  • The source prints 54; held-for-update erratum 5516 notes the length error. That is not a verified erratum. Rejected 8620/8621 alternatives are not adopted: the existing examples do contain final delimiters.
DETAILS

Published test keys are examples, not secrets to use. This guide does not implement key management or a production cryptographic library.

Read the RFC section ↗

All chapters in RFC 8188

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗