Lesson 2 of 3 · Public messages and private cryptographic state
Follow key encapsulation
24 minute lesson · 3 checks along the way
Your goal for this lessonFollow the public and private objects in key encapsulation and calculate explicit communication and storage costs.
In this lesson 4 sections · 3 checks
Using archive links & definitions
Follow a linked name to explore its archive card. “Back to your lesson” brings you to the same part of the reading.
Read & understand
Separate the dated claim from the worked reference
NuSpace’s December 2023 NuLIoN announcement does not name a specific algorithm or parameter set. A later Squareroot8 product page describes ML-KEM in a demonstration involving a 3U satellite, without naming that satellite or documenting a version and parameter set. We will use the published 2024 ML-KEM standard as a reference example. That choice does not identify the exact software that flew in 2023.
A key-encapsulation mechanism, or KEM, has three operations. In our hypothetical exchange the spacecraft generates an encapsulation key ek and a corresponding decapsulation key dk. It sends ek to the ground and keeps dk private. The ground uses ek and fresh private randomness to create a shared secret K together with a ciphertext c. It sends c back, retaining K. The spacecraft uses dk and c to calculate its own candidate shared secret. The secret itself is not one of these two transmitted objects.
Read & understand
Name each object before counting bytes
For the standard’s ML-KEM-768 parameter set, the specified byte-array sizes are ek=1,184 bytes, dk=2,400 bytes, c=1,088 bytes and K=32 bytes. The two basic transmitted objects therefore total 1,184+1,088=2,272 bytes. Counting the 32-byte secret as the whole exchange misses both public objects. Adding the private decapsulation key to the traffic would describe a different and inappropriate exchange.
These 2,272 bytes exclude identity credentials, confirmation messages, framing and retransmission. If an original transport model adds exactly 256 bytes of other material in each direction, its total is 2,272+2×256=2,784 bytes. Public does not mean unimportant: the encapsulation key needs protection against substitution and a verified association with the intended owner. We examine that requirement in the next lesson.
Check 1 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
Count simultaneously live storage
Suppose a teaching implementation stores the standard byte arrays without compression. At one instant the spacecraft holds dk, the received c and its candidate K. Those three buffers occupy 2,400+1,088+32=3,520 bytes. In a 4,000-byte allocation that leaves 480 bytes. This is only the stated buffer accounting, not a claim that the algorithm can run in that memory: working arrays, stacks, alignment and protocol state are excluded.
If it also keeps a separate 1,184-byte copy of ek at that instant, the total becomes 4,704 bytes, exceeding the allocation by 704. The word separate matters; a view into existing storage is not an additional copy. Conversely, an implementation using expanded internal structures may need more than these serialized sizes. After c is no longer required and its buffer is released, dk and K occupy 2,432 bytes, but that later total does not remove the earlier peak. Releasing storage must follow the actual data dependencies.
Public KEM objects travel; private buffers occupy local memory
Original exchange and storage model using FIPS 203 byte-array sizes. The narrow coral segment is the 32-byte secret. Cryptographic working memory, framing and other protocol messages are excluded.
Open full-size diagram in a new tab: Public KEM objects travel; private buffers occupy local memoryCheck 2 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
Check the interface without overclaiming success
Input checking is part of the standard. For this parameter set, a 1,087-byte ciphertext fails its required length check. A correctly sized ciphertext is not thereby authenticated, nor proven to be an honestly generated encapsulation. ML-KEM’s normal decapsulation interface can produce a 32-byte candidate even when internal checks select an implicit-rejection value. Seeing 32 output bytes is therefore not evidence that the intended peer holds the same key.
Key generation also needs fresh internal random values, and encapsulation needs its own fresh randomness. Random-bit generation, secret storage and handling of intermediate values belong to the cryptographic module’s security design. Merely observing enough bytes is not a demonstration of the required randomness quality. For NuLIoN, the reported exchange establishes a bounded prototype milestone; the reference calculation teaches how to ask precise questions about message costs and secret state without assigning invented memory limits or implementation details to the spacecraft.
Check 3 of 3
10 pointsUse the reading above. You can try again without losing points.
Put it together
Your lesson progress
Each check connects to a part of the story. Complete all 3 to earn your 25-point lesson bonus.
Explore further · Optional
Go to the source
Explore the evidence behind this lesson. These optional readings and videos open in a new tab.
- Read: Squareroot8: QRNG and PQC demonstrationComplete current product-page body reviewed. It names ML-KEM and a 3U satellite but does not identify the satellite, exact version or parameter set.
- Read: NIST FIPS 203: ML-KEMComplete Sections 3, 6.3, 7 and 8 reviewed, including Figure 1 and Tables 2–3. The 2024 standard is a teaching reference, not evidence of the exact 2023 flight implementation.
- Read: NIST SP 800-227: managing cryptographic dataComplete Sections 3.2–3.3 reviewed for representations, input checks, storage and intermediate data. Internal storage is implementation-dependent.
- Read: NIST: FIPS 203 publication and errataThe published errata workbook was read. Its Appendix A indexing clarification and Algorithm 15 comment correction do not change the sizes used here.