Classroom corrections by lesson
Choose your exhibit to check what its controls, numbers and verdicts mean.
AEGIS Gate
What does the throughput number measure? The 256 KiB row encrypts 262,144 bytes 50 times. That is 12.5 MiB. If it takes half a second, throughput is 25 MiB/s, or 26.2144 MB/s. The original chart labels the binary rate MB/s. Compare the rates for the two implementations on your device. Browser scheduling and nonce generation take time, and the lab measures no native AEGIS implementation. NIST guide to binary prefixes
Where does the random-nonce curve cross 2−32? With 96-bit nonces, move the message-count slider from 232 to 233. The estimated collision probability goes from about 2−33 to 2−31. The crossing is close to 232.5 messages. GCM with random IVs has a separate limit of 232 invocations across all devices using the same key. NIST SP 800-38D §8.3
Which bytes belong to the message? In the encrypt/decrypt exhibit, a leading U+FEFF is part of the text you enter. The UTF-8 bytes for U+FEFF followed by the letter A are ef bb bf 41. The letter A by itself is 41. The original display can make both messages look like A after a successful decryption. Check the ciphertext length: four bytes for the first message, one for the second, with either tag length.
To inspect a decrypted UTF-8 message in JavaScript while preserving that first character, use new TextDecoder('utf-8', { ignoreBOM: true }).decode(bytes). Encoding Standard, TextDecoder
Which length changes when you choose a longer tag? Enter Café with a precomposed é. It occupies five UTF-8 bytes, so the ciphertext body is five bytes with either tag setting. The 128-bit tag adds 16 bytes and the 256-bit tag adds 32 bytes. If you concatenate the body and tag, the totals are 21 and 37 bytes, excluding the nonce and any framing.
Can the throughput chart establish constant-time behavior? The teaching AES round selects a byte from a substitution table using a state byte as its index. The memory address therefore depends on the state. Average throughput cannot certify constant-time execution. The AES-GCM row calls the browser’s Web Crypto implementation, which may use hardware instructions. A comparison on your device measures these two code paths. Table lookup in the teaching AES round · Web Crypto benchmark call
AES Modes
Does the last grid cell contain a full block? In the seven-mode comparison, enter 17 ASCII letters and inspect the CTR ciphertext hex. Its 34 hex digits represent one 16-byte block and one remaining byte. The grid can give a false repeat warning when it fills the last cell with zeros for comparison. Compare the actual lengths and bytes in the hex readout. For example, 17 zero bytes contain one full block of zeros and a one-byte tail; they contain no pair of equal full blocks.
Do equal grid lengths mean equal output lengths? Compare CTR, GCM, and CCM with the same 17-byte message. Each grid shows 17 ciphertext bytes. The comparison omits the 16-byte authentication tags for GCM and CCM, so each authenticated result is 33 bytes when the ciphertext and tag are counted together. CTR has no authentication tag. These counts exclude nonces and framing.
In CCM, what goes into AES before the first byte of plaintext is encrypted? For the 13-byte nonce in RFC 3610 packet vector 1, each counter block has a one-byte flag, the full nonce, and a two-byte counter. The flag is 01. Compare the three blocks below with the equations in the original CCM panel. Grouping the bytes shows where the nonce ends.
| Use | Flag · nonce · counter (hex) |
|---|---|
| Mask the tag | 01 00000003020100a0a1a2a3a4a5 0000 |
| First payload block | 01 00000003020100a0a1a2a3a4a5 0001 |
| Second payload block | 01 00000003020100a0a1a2a3a4a5 0002 |
Try clearing the plaintext while keeping the associated data. The exhibit uses a 16-byte tag. An empty message should therefore produce exactly 16 bytes in the combined result, all of them tag bytes. A result of 49 bytes means the interface encrypted its 33-byte sample. Open the result to see which message it sealed.
Open AES Modes and select CCM · RFC 3610, counter formatting · Packet vectors
Which key checks the tag in legacy CBC? In the standardized A128CBC-HS256 construction, start with 32 random key bytes. The first 16 form the HMAC key and the last 16 form the AES key. As a worksheet, number the bytes 0 through 31. A receiver checks the tag with bytes 0–15 before decrypting with bytes 16–31. The tag covers the associated data, IV, ciphertext and a length field. Reusing the same 16 bytes for both steps loses this key separation. RFC 7518 §§5.2.2–5.2.3
Ascon
Can the message be empty? Yes. For a message of zero bytes, the first eight bytes from Ascon-XOF128 are 47 3d 5e 61 64 f5 8b 39. Asking for one byte gives 47. The two requests use the same input and ask for different output lengths.
The output length has a separate rule. Algorithm 6 requires a positive number of bits. In the lesson’s byte-oriented helper, one byte requests eight bits. The helper rejects a request for zero output bytes. On the slider, choose 1 and then 8 to see the same first byte both times. NIST SP 800-232, §5.2.
Babel Hash
What does the benchmark rate measure? The Comparison tab hashes 1,048,576 bytes per pass. That is one mebibyte (MiB). If the median time is 10 milliseconds, the rate is 100 MiB/s, equivalent to 104.8576 MB/s. The standalone table currently labels the first number “MB/s”.
Which run sets the reported rate? Each algorithm gets one untimed warmup and five timed passes. If those five times are 40, 8, 10, 9, and 11 ms, sort them and take the middle value, 10 ms. The reported rate is 100 MiB/s for a 1 MiB buffer. The 40 ms pass is part of the sample, and the warmup is outside it.
Can you reuse a digest from an earlier run? Each run generates a fresh random buffer for all three algorithms. In a controlled rerun where SHA3-256 became unavailable, the standalone table kept its old digest while the other two rows refreshed. Read that row as unavailable for the new buffer and leave it out of the comparison.
What gets hashed when a bit flip breaks a character? Enter A on the Avalanche tab, select SHA-256 and flip input bit 0. The exhibit counts from the high bit. The input byte 41 becomes c1, which cannot occur in valid UTF-8. SHA-256 still takes that byte as input. Its digest begins d1bbd73b, and 131 of the 256 output bits change.
Now flip bit 7 of the original A. The result is 40, the UTF-8 encoding of @. Its digest begins c3641f85, and 136 bits change. Replacing an invalid byte with the displayed character � would hash three different bytes, ef bf bd.
Bcrypt Forge
Can a well-formed bcrypt string tell you whether a password matches? The string records a version, a two-digit cost, a 22-character salt, and a 31-character checksum. Checking those fields only establishes the format. A match requires a completed comparison with the same password and hash still on screen.
Change $12$ to $03$, then to $31$. Cost 03 is outside the format. Cost 31 is representable. This inspector reads the encoding without hashing a password. In the original verifier, edit the password while a comparison is running and repeat the check before relying on its result.
Open Bcrypt Forge · OpenBSD bcrypt format
What does the cost field count? Set it to $06$. The key schedule first calls ExpandKey once with the salt and password. Each of the 64 cost iterations then calls ExpandKey twice, giving 129 calls in all. Try $07$ for 128 iterations and 257 calls. The inspector calculates these counts directly from the encoded cost.
How should you read the benchmark? A 250 ms measurement describes one hash on the device running the lesson. The same cost sets the same iteration count on other hardware, where the time and price per hash can differ. OWASP gives cost 10 as a minimum for legacy bcrypt deployments. To choose a work factor for a service, measure login latency and capacity under its expected concurrent load.
How many characters fit in this lab’s 72-byte limit? The bcryptjs implementation uses the first 72 UTF-8 bytes. For new or changed passwords, check the encoded length before hashing and reject an input that exceeds the supported limit. For a classroom example, 36 copies of precomposed é occupy 72 UTF-8 bytes. The visually similar sequence e followed by a combining acute accent takes three bytes per repetition, so 24 repetitions occupy 72 bytes. Count bytes in the representation you actually submit.
Eksblowfish key schedule · bcryptjs input limits · OWASP password storage guidance
Blind Hello
Send both ClientHellos for bank.example.com. Read the server name in each packet. The plain packet names the destination. The outer ClientHello carrying ECH names public.cdn.example. The encrypted inner ClientHello carries the destination. The outer packet also contains an ECH extension.
Switch to custom hostname and leave the box empty. Which destination have you just requested? The empty box supplies none. If the old packet cards remain or another send still names the bank, those results belong to the earlier selection. Enter clinic.example.net, send again, and match the name in the plain packet to the one you actually entered.
Compare the two ClientHellos · RFC 9849, TLS Encrypted Client Hello
Blind Relay
Who can read a request? The relay sees the client’s network address. The gateway reads the inner request. Writing your name or account ID inside that request can identify you to the gateway. A fresh encapsulation key changes the encrypted envelope. Repeated details in the request can still link visits. Oblivious HTTP privacy considerations (RFC 9458).
Ciphertext Mirror
Does every bad ciphertext produce a fallback secret? Suppose an ML-KEM-768 receiver has a valid decapsulation key. Predict the result for a ciphertext of 1,087 bytes, then for a 1,088-byte ciphertext that fails the re-encryption comparison.
The 1,087-byte input gives a length error. The 1,088-byte input reaches the comparison. A mismatch returns a 32-byte fallback secret. A match also returns a 32-byte secret. The caller receives no match flag. The required ciphertext lengths are 768, 1,088 and 1,568 bytes for ML-KEM-512, ML-KEM-768 and ML-KEM-1024, respectively.
Can a key have the right length and still fail? Compare the ML-KEM-768 keys in NIST’s sample file. For encapsulation, the largest encoded coefficient is 3,325 in case 136 and 3,330 in case 137. Legal coefficients range from 0 to 3,328. Case 136 passes the modulus check and case 137 fails, even though both keys are 1,184 bytes long.
For decapsulation, compare cases 127 and 128. Hash the public key embedded in each 2,400-byte decapsulation key with SHA3-256 and compare that digest with the stored hash. They match in case 127 and differ in case 128. A key-check failure stops the operation before the ciphertext comparison. NIST sample cases, groups 9 and 10
Collision Vault
What do the two SHAttered PDFs show? The files have different contents and the same SHA-1 digest. Compare their SHA-256 digests in the original exhibit to tell them apart. The authors report roughly 6,500 CPU-years and 100 GPU-years of computation. Read the paper at CWI for their measurements.
The announcement came in February 2017. Chrome had already announced its SHA-1 certificate retirement schedule in November 2016.
Corrupted Oracle
What happens at p = 0.01? At the 1% significance level used here, NIST’s rule rejects the sample when the measured p-value is below 0.01. An exact value of 0.01 passes this test. For example, 0.00999 fails, 0.01000 passes, and 0.01001 passes. A rounded display of 0.010 can hide which value was measured.
Does one byte give enough data for the Longest Run test? No. The original statistics function returns a passing p-value of about 0.228 for the eight bits 11111111, but the smallest NIST configuration needs 128 bits, or sixteen 8-bit blocks. The exhibit’s Run Tests button generates one million bits per generator. At that length, predict the number of 10,000-bit blocks: there are 100. NIST SP 800-22 Rev. 1a, §2.4.2
Try 120, 128, 6,272, 750,000 and 1,000,000 bits. At one million bits, Block Frequency uses only 999,936 bits. The last 64 bits are outside its complete blocks. Its fixed 128-bit block size is smaller than NIST recommends for a sample this long. Longest Run uses every bit in this example. Block Frequency input-size recommendations, §2.2.7
For the published 128-bit Longest Run example, 4 blocks have a longest run of at most one, 9 have two, 3 have three, and none have four or more. These counts give a p-value of 0.180609, using the exact probabilities for the four categories. NIST’s worked example, §2.4.8
A pass describes one statistical test on one sample. Even predictable output can pass. NIST SP 800-22 Rev. 1a, §2.2.5–2.2.6
How much output does the 240-bit request ask for? Divide by eight to get 30 bytes. A heatmap with one cell per bit therefore shows 240 data cells. A square layout may leave some grid positions empty. Those positions carry no generated bits.
Dead Sea Cipher
What happened in 1882? Frank Miller published a telegraph-code method that historians identify as an early description of the one-time pad. Whether it influenced the later Vernam–Mauborgne system remains uncertain. Steven Bellovin’s historical account.
Where do the pad bytes come from? The ordinary Encrypt button uses Web Crypto. A pad prepared with Generate is consumed by the next encryption. Encrypting another message draws fresh bytes, even when the messages have the same length. If the secure draw fails, the panel clears the old result and explains what happened. The mathematical guarantee requires an independent, uniformly random secret pad as long as the message, used once.
The final panel demonstrates AES-GCM. AES is the block cipher and GCM supplies authenticated encryption. Some TLS cipher suites use AES-GCM. Disk encryption can use a different mode, such as XTS-AES. TLS 1.3 cipher suites and NIST’s XTS-AES recommendation.
DNSSEC Chain
Who vouches for the new key? In the child-zone exercise, a resolver can still hold an old DS record from the parent. The DNS root has no parent. For a root rollover, the resolver needs a trusted root key, obtained through a trust-anchor update. In the lab’s 12 October 2026 capture, both keys 20326 and 38696 are present. Look at the signer key tag in the DNSKEY set’s RRSIG: 38696 signed it. A key’s presence alone does not tell you which key signed. IANA’s root trust anchors and rollover guidance.
Which clock produced the verdict? At the capture instant the pinned chain validates. Move the clock to +400 days and the recorded signature has expired. If you switch while verification is running, a result from the earlier clock can arrive last. Select the intended clock again after the previous result settles.
Educational RSA
Which bytes get signed? The standalone Sign & verify panel and this calculator both hash UTF-8 bytes. At the default modulus of 67,591, try é (bytes c3 a9, digest 37502). Then try the same-looking letter made from e and a combining acute accent (bytes 65 cc 81, digest 30022). Each reduces the 64-bit result modulo the modulus and maps a zero remainder to one, as the signing exercise does.
Can two different private exponents work? Generate a classroom key with p = 5, q = 11 and e = 3. The lab computes the inverse modulo φ(55) = 40 and shows d = 27. The least common multiple of 4 and 10 is λ(55) = 20, so d = 7 works too. Try the message 5. Its ciphertext is 15, and raising 15 to either private exponent gives 5 modulo 55. After editing a parameter in the original, choose Generate before using the other panels.
Open Educational RSA · RFC 8017, private keys · RFC 9923, FNV basics
Enigma Forge
What does matching a crib establish? A crib is a passage of expected plaintext. In this lesson, a setting that reproduces that passage can still give wrong letters elsewhere in the message. You can check the machine itself with rotors I–II–III, rings and starting positions AAA, reflector B and an empty plugboard. Enter AAAAA for BDZGO, then enter BDZGO with the same starting settings to recover AAAAA.
Entropy Collapse
What time unit does the slider use? The 28-bit preset says “millisecond clock” and the 20-bit preset says “minute-resolution clock.” Both store boot time in whole seconds. To read the displayed time, start at midnight UTC on 1 January 2024: an offset of 1 gives 00:00:01, and 60 gives 00:01:00. The presets change the range of possible inputs while keeping the same clock unit.
How much can you learn from the length of a seed? Two bits can encode four values: 00, 01, 10 and 11. Predict how likely the most common value is under each distribution, then select it. The counts below describe eight equally likely tickets.
Min-entropy is −log₂ of the largest outcome probability. With counts 4, 2, 1 and 1, there are still four possible values, but the most likely has probability ½. Its distribution has 1 bit of min-entropy. The byte length alone tells you how many strings fit.
In the original exhibit, move the entropy slider to 256 bits. The browser requests 32 bytes from crypto.getRandomValues. There are about 1.16 × 1077 strings of that length. Assigning each the same probability is a model assumption. This page cannot measure the browser’s underlying entropy source or identify which operating-system call supplied it.
Open the seed exhibit · NIST SP 800-90B · Web Cryptography API
What do the eight known-answer tests tell you? The lab supplies two prescribed cases for each of four combinations of personalization and additional input. Each test starts with specified inputs and compares the generator’s output with the expected bytes. A match checks that example of the deterministic mechanism. Assessing the entropy of a live input source requires separate evidence about how the source generates samples. NIST generator test vectors · NIST entropy-source assessment
Envelope KMS
Clear the plaintext field, keep the context, and choose Generate + Seal. Predict the two lengths in the Envelope Inspector. An empty message has 0 ciphertext bytes and this lab still produces a 16-byte authentication tag. If the inspector shows 20 ciphertext bytes and Open Latest returns “Hello envelope world,” the interface substituted its sample before encryption.
For a second check, put a literal U+FEFF at the start of a message. It occupies three UTF-8 bytes. A display can skip that character when decoding even though the authenticated bytes survived. Compare the ciphertext byte count with the UTF-8 length of the text you entered.
Open the same envelope twice. The tag can verify each time. Applications that must detect repeats need a separate freshness check. During key rotation, the lab’s KMS unwraps the data key internally, wraps it under the destination key, and returns the wrapped key. The payload ciphertext stays the same.
Factor Forge
Does each extra bit double the trial-division estimate? Open The Ladder and expand “The numbers behind this chart” under Trial Division. At 8 bits the table shows 46 divisions. At 12 bits it shows 492. Four doublings would give a factor of 16, but this curve rises by about 10.7. It uses the prime-count estimate x / ln(x) with x = 2b. You can also count primes through 256 and 4,096 to get the exact counts of 54 and 564.
What changes at 0, 2 and a large probable prime? The factoring exercise accepts integers of 2 or greater. Zero is outside the domain even though it is even. Two is prime and has no proper prime factor. Enter 618970019642690137449562111 (289 − 1). This exceeds the deterministic range of the lab’s Miller–Rabin test. Passing the chosen bases supports “probably prime.” Proving that particular number prime requires additional evidence.
What does the tree establish? Enter 97, then clear the field. A tree that still shows 97 belongs to the previous input. For a large integer tested with random bases, a passing result means “probably prime.” The deterministic range shown in the exercise supports a definitive verdict.
How many bits does the balanced preset need? Its displayed integer is 1,640,344,808,434,621. It lies between 250 and 251, so its binary representation uses 51 bits. Multiplying two 26-bit integers can give a 51-bit or a 52-bit product.
Falcon Seal
What did “Verified” establish? In Panel 3 of the original signing lesson, sign a library notice, copy the JSON, paste it into the verifier, and verify it unchanged. The two classroom checks agree with the message and the public key inside that file. The illustrative signer never uses a private key, so this result cannot identify the author or prove possession of a private key.
Change one word in the pasted message and verify again. The old green result belongs to the earlier text until you rerun the check. Then try the real Falcon-1024 panel with the same notice. It signs the message with a generated private key, verifies the original, and rejects the changed-message control. An independently trusted public key is still needed to associate a signature with a named person.
Which lattice point is closest? Enter the same integer target here and in the original playground. Both bases describe the same lattice. Rounding the two basis coordinates independently can give a different answer in each basis. Compare the squared distances to find out whether either answer is closest.
At (6, 16), the minimum squared distance is 292 at (0, 0). The short basis rounds to (−4, 30), squared distance 296. The skewed basis rounds to (28, 34), squared distance 808.
Try (16, 2) for a tie. Any point at the minimum distance is a correct answer. Falcon signing uses its secret basis to sample a sufficiently short vector satisfying the verification equation. Falcon specification, signing and verification
Format Ward
How many symbols are in 😀😁? In the custom-alphabet panel, use those two distinct Unicode code points as your alphabet and repeat the pair ten times as the plaintext. That gives 20 binary symbols and 220 = 1,048,576 possible strings. Dropping one symbol leaves 219 = 524,288, below the lab’s one-million minimum. Each emoji here occupies two UTF-16 code units. Counting those units as distinct alphabet entries gives the wrong radix.
On the card panel, compare the fictional example 4111 1111 1111 1111 with 4111x1111 1111 1111. The first has sixteen digits separated by spaces. In the second, silently dropping the letter would encrypt a different input and could produce a misleading success. The NIST revision draft explains the larger proposed minimum domain for FF1.
Does the checksum survive encryption? In Start Here, turn the tweak off and enter 0000000000000008. This input fails Luhn. Its ciphertext, 3092148360819288, passes. Both have sixteen decimal digits. Format preservation tells you the length and alphabet; check the checksum independently on each value. If you enter abc next, the original panel can leave the earlier ciphertext beside the input error.
FROST Threshold
Who has the whole signing key, and when? In the original exhibit, generate keys for the default three-of-five group. Count the participant cards. The trusted dealer created the group secret and issued five shares. The browser now holds all five. RFC 9591 requires the dealer to erase its secret and shares after distribution in a trusted-dealer setup.
Select three participants, complete both signing rounds, then aggregate. Each signer uses its share. The aggregator combines signature shares using public commitments and verification data. The resulting 64-byte Ed25519 signature verifies under the group public key. That check tells you whether the signature fits this key and message. It cannot tell you whether the dealer erased a copy or whether the five shares lived on separate devices. RFC 9591, Appendix C
Function Key
Does rank tell you how many bits an answer reveals? The exhibit solves the displayed small-integer equations using exact rational arithmetic. To see why an information claim also needs a distribution, consider pairs of numbers modulo 5. Observing the first coordinate is one independent equation. Each observed value leaves five compatible pairs.
If all 25 pairs were initially equally likely, the answer reduces the possibilities from 25 to five and reveals log2(5), about 2.32 bits. If the first coordinate was already known to be zero, the same equation supplies zero new bits. The algebra of the measurement stayed the same. The starting information changed.
GGH Trapdoor
How do you check a decoded point? The two bases describe the same lattice. Compare each decoded lattice point with the starting lattice point from that run. Both bases can give the right answer for a small error. Changing the sampled error can change which answers match.
Harvest Timeline
When does a three-year planning shortfall leave zero sensitive years for a particular record? Start in 2026. A record must stay secret for five years, migration takes ten years, and the scenario places quantum arrival twelve years away in 2038. The planning shortfall is 5 + 10 − 12 = 3 years. The record’s secrecy requirement ends in 2031, seven years before the assumed arrival. The timing calculation alone cannot establish that the record would still be sensitive then.
Compare the completion year with the arrival year in the delay table. If they are equal, migration finishes at arrival and has zero years to spare. The original table can label that case “BEAT CRQC.” In the CSV, read the column labelled “Exposed (X+Y > Z)” as the timing comparison and consider the asset’s actual confidentiality mechanism separately.
Where does the 2054 point come from? The graph extends the 2044 scenario value by five percentage points, up to a ceiling of 99%. In the pessimistic scenario, 60% in 2044 becomes 65% in 2054. The 2024 survey asked experts about five horizons: 5, 10, 15, 20 and 30 years. The lab marks three of them on its graph. Although the report includes 30-year responses, the lab calculates its own 2054 value from the 2044 scenario. Read the 2024 report.
Harvest Vault
Can a record expire before Q-Day while its library is already late to migrate? In the worked calculator example, a library starts planning in 2026. A notice stays sensitive for five years (X), migration takes six years (Y) and the assumed quantum arrival is eight years away (Z), in 2034.
A notice issued today expires in 2031. A notice issued just before migration finishes in 2032 can stay sensitive until 2037. That gives a three-year planning shortfall even though today’s notice has zero sensitive years left in 2034. Starting migration in 2028 would finish it in 2034. To allow both migration and the last notice’s five-year shelf life by 2034, the latest start would have been 2023.
The dates are assumptions. The calculator cannot tell whether anyone recorded a session. A later upgrade cannot change the protection on a copy someone already holds. NIST IR 8547 §3 · RFC 8784 §1
LLL Break
Can two different lattices have the same cell area? Use (2, 0) and (0, 1) as your first pair of basis vectors. Every point has an even first coordinate. Now use (1, 0) and (0, 2). Every point has an even second coordinate. Both cells have area 2, yet only the second lattice contains (1, 0).
In Exhibit 1, the basis-change button can add or subtract a vector, swap the vectors, or reverse one vector. Each change can be undone using integer coefficients. This reversible integer operation explains why both bases generate the same lattice. Swapping the vectors reverses the determinant’s sign and preserves its absolute value, the cell area.
What do the three decimal places show? The rows (2, 1) and (1, 2) give a determinant of 2 × 2 − 1 × 1 = 3. Add the second row to the first. The new rows (3, 3) and (1, 2) give 3 × 2 − 3 × 1 = 3. The equality is exact by the row operation. The step panel calculates with floating-point numbers and rounds its display to 3.000.
The noise in the teaching example comes from rounding a normal draw to an integer. ML-KEM samples polynomial coefficients from a centered binomial distribution. FIPS 203, Algorithm 8.
Iron Letter
Does Bob see the exact text Alice sealed? Generate the keys, copy the whole sample into Alice’s message, seal it for Bob and open it with his key. Try ECIES P-256, RSA-2048 or RSA-4096. Each should return the same 25 UTF-8 bytes, including the line break and the two spaces at the end.
If the opened text contains 22 bytes, the text decoder consumed the first three bytes, EF BB BF. The encrypted message still contained them. Spaces and line breaks can also look different when the result display collapses whitespace.
Jevil
How many polynomials fit three points? Choose budget 1, two positions per signature and the Goldilocks base field. Generate a key and sign one message with the honest signer. The meter reads 3 / 4. There are exactly 18,446,744,069,414,584,321 polynomials of degree at most three that fit those three points.
A cubic has four coefficient slots. Once you choose the coefficient of the cubic term, the three points determine the other three coefficients. The field offers one choice for each of its q elements, including zero. That zero choice gives a polynomial of degree at most two.
The standalone lesson now shows the exact count, q = 264 − 232 + 1. An earlier display rounded down to 263. With the tower field selected, the same 3 / 4 meter leaves q4 choices. Signing the same message again with the same key leaves the meter and the count unchanged.
KDF Arena
How many memory blocks does Argon2id use? With two lanes, the block count must be a multiple of eight. Requests of 256 KiB and 257 KiB both use 256 blocks of 1 KiB each. The original request also goes into the initial hash, so changing only the request can change the derived key. RFC 9106, §3.2.
Try a run with three lanes and 8,192 KiB. The largest multiple of twelve that fits is 8,184. That is the size of the block array. The browser also uses memory for its runtime and other data.
KDF Chain
How much memory is in the scrypt ROMix table? Each of the N entries holds 128 × r bytes. With N = 16,384 and r = 8, the table uses 16,777,216 bytes. That equals 16 MiB, or 16.777216 MB. Temporary buffers and browser overhead are additional. RFC 7914, §5.
To check which input produced a key, derive with N = 1,024 and r = 8. The table is 1 MiB. Change N to zero. The previous key clears, and the next attempt reports an invalid input. Retry with N = 2,048 and the same r. The table is now 2 MiB.
Kerberos
What does a Kerberos client need to use a service ticket? The client sends the ticket with a fresh authenticator encrypted with the associated session key. The encrypted ticket alone cannot create that authenticator. Protect the credential cache because it holds both pieces. See RFC 4120 §3.2.2.
In the original lesson, try the clock at +5 minutes, then +6 minutes. The first is accepted and the second is rejected. Five minutes is the configurable MIT Kerberos default.
What proves the service’s identity to the client? Compare ctime and cusec in the last two messages. The service echoes both fields in an encrypted AP-REP. To authenticate the service, the client must decrypt and verify that reply with its ticket session key and compare both values with its own request. Seeing a sixth message is evidence that the service replied. The client’s checks establish mutual authentication. RFC 4120 §3.2.5
Key Exchange
Does a 256-bit curve send a 32-byte public key? Compare the P-256 and X25519 bars in the size chart. In TLS 1.3, P-256 sends one format byte followed by two 32-byte coordinates: 65 bytes. A compressed P-256 point takes 33 bytes. X25519 sends one 32-byte value. The bars count encoded shares before TLS framing. TLS encodings, RFC 9846 §4.3.8.2
Now compare the two directions of X25519MLKEM768. The client sends an 1184-byte ML-KEM encapsulation key and a 32-byte X25519 share, or 1216 bytes. The server returns a 1088-byte ciphertext and a 32-byte share, or 1120 bytes. The shared secret stays local: the 32-byte ML-KEM secret comes first, followed by the 32-byte X25519 secret. TLS feeds the resulting 64 bytes into its key schedule. RFC 10024 §4
In the hybrid calculator, the classical input is a toy DH value encoded in four bytes. The lab derives a 32-byte result from ML-KEM secret ‖ four-byte DH value using labelled HKDF. For this calculation there are 36 input bytes: 32 from ML-KEM and four from toy DH. The standardized TLS group uses 64 input bytes, 32 from each component. Its handshake also authenticates the transcript.
Key Lifecycle
Which key can still read an old record? Encrypt the three library records under Key A, then rotate to Key B. The fourth record uses B. A has finished its originator-usage period for encryption, but its recipient-usage period can continue for decrypting the first three records. Rotation alone leaves their ciphertexts unchanged. NIST key management guidance.
If encryption fails partway through the initial three records, the exercise returns to its empty state. Retry to create all three together. The table continues to show record IDs, epochs and ciphertext sizes even when a key is retired.
What changes in the library’s key register? Preparing the records generates Key A for AES-GCM. At rotation, Key B becomes the writer and A can still decrypt archived records. Discarding the library’s A reference ends that local access. Open the cryptography details to see the first record’s full 96-bit initialization vector. Its 12 bytes take 24 hexadecimal digits.
Key Mirror
Who makes the label proof? Enter library in the label privacy panel. In the demonstration the browser plays both roles. The directory uses its secret VRF key to make the 80-byte proof. Anyone with the directory’s public VRF key, the same username bytes and that proof can verify it and derive the same 64-byte output. An ordinary reader cannot compute a new proof from the username alone. RFC 9381, §3
How does the panel pick a slot? Read the first six hexadecimal digits of the output as one number. For example, 010203 gives 1 × 65,536 + 2 × 256 + 3 = 66,051. The panel uses those first 24 bits to illustrate a slot. Different full outputs can share that prefix. The separate flat binding log checks whether a record was included in a particular tree. Inclusion alone cannot establish that a key is the latest authorized one.
Who can connect the username to the label? Someone who can query the directory for a name and receive its proof can check that link. Publishing opaque labels limits offline guessing from the list alone. The directory still sees the queries it serves.
KMAC Gate
Is a shorter KMAC tag the start of the longer tag? Use KMAC128 with the 32 key bytes 40 through 5f in hexadecimal, message bytes 00 01 02 03, and an empty customization string. A 16-byte request starts a2 35 43 cf. A 32-byte request starts e5 78 0b 0d. KMAC absorbs the requested length. Its specification also permits zero output bits, which produce an empty string and provide no authentication. SP 800-185, §4.3.
KMACXOF demonstrates a different property: a longer output extends the shorter one. For the fixed-length KDF-KMAC construction, use the input key as the KMAC key, context as the message, the desired bit length, and the purpose label as customization. SP 800-108 Rev. 1, Figure 4.
How can SHAKE128 return 336 bytes when its rate is only 168 bytes? The first 168 bytes come from one state. Another permutation supplies the next 168 bytes from the next state. The 256-bit capacity is never read directly as output. The same block rule applies to KMAC128. Capacity and output length measure different properties. FIPS 202, Algorithm 8.
KpqC Pair
Which AIMer binary did your browser actually run? The WebAssembly file supplied by the lab’s npm package is 127,927 bytes. Its SHA-256 digest begins 84891f67. The file stored at the package’s Git tag is 128,195 bytes and its digest begins e66de0d7. The different lengths already establish that the files differ. The full digests identify each artifact.
The January 2026 specification gives a third digest, for the reference source archive. The vendored C sources, headers and known-answer response files match the archive. Open the source note in the AIMer exhibit to see the full digest of the binary the browser loads.
Lattice Fault
What does the flat histogram measure? Select the constant-time model in the timing panel. Its cycle-count function returns 3 for every input, so the simulated histogram has a single modeled value. The separate browser stopwatch measures JavaScript execution time. Neither display establishes a processor instruction count or a device-wide performance overhead.
The lesson supplies no before-and-after benchmark for the 0–5% overhead quoted in the original comparison table. To quote an overhead for a device, you need matching measurements of both builds on that device, with the compiler and test workload identified.
Lattice Gentle
Can the error bound identify one secret? In the LWE panel, the three published candidates give centered residuals (1, 0, 2, 0, −1), (0, 2, 0, 1, 1), and (1, 0, −1, −2, 2). The largest absolute entry is 2 in each case. All three pass the displayed bound. This instance illustrates a point near a lattice and leaves the secret ambiguous.
What does 169 count? The SIS matrix has rank 3 modulo 13 and five columns. Its kernel therefore contains 132 = 169 residue vectors, including zero. The box from −3 through 3 has 75 = 16,807 integer vectors. Exactly four nonzero vectors in that box satisfy the equation. The exercise accepts any vector meeting the stated bound. Finding a shortest nonzero vector is a different problem.
The interactive example numbers follow version 1.1 of the notes. In version 3.3, the noisy-equations example is numbered 4.4. Alfred Menezes, A gentle introduction to lattice-based cryptography.
Lattice IBE
What does an accepted key relation establish? The lesson checks Ae ≡ u modulo 4,093. Adding 4,093 to one coordinate of e leaves that check unchanged. The equality alone cannot certify the length of the vector or how the authority sampled it.
The four sampler rows use floating-point arithmetic and a finite window extending eight sampling widths on either side of each center. For the lab’s parameters, the dual-system modulus threshold shown in the ledger is 5 × 256 × (4 + 1) = 6,400. The chosen modulus is 4,093. A successful one-bit decryption and a measured width ratio do not establish the distribution guarantee in the GPV construction.
Lightweight Bench
What does the PRINCE panel measure? Choose “Encrypt, then decrypt both ways.” The two routes return the original block. The designers report that reusing the encryption core adds negligible hardware for decryption in their architecture. The browser compares blocks and does not measure chip area. PRINCE design paper, §2.
The control reports how many outputs agreed in 2,000 sampled trials. A count of 0 means no agreements in that run. To check the constant itself, open the single-block result and XOR either value in a round-constant pair with its partner. Each of the six pairs gives the same value, c0ac29b7c97c50dd.
LMS Ledger
What happens to a reserved leaf if a signing attempt fails? A height-5 tree has 32 leaves, numbered 0 through 31. Suppose 0 and 1 were used, then 2 was reserved and signing failed. The next request uses 3. After reserving 3, there are 28 unused leaves. A fresh signature can use any one of those 28 once.
The ordinary browser signer reserves an index in memory before computing the signature. Keeping a private key across restarts also requires preserving the reservation in durable storage before releasing the signature. The verifier checks the leaf index, the number of authentication-path elements and their byte lengths before comparing the computed root with the public key. RFC 8554, §5.4 and NIST’s signing-module profile.
LMS + HSS Vault
Which schemes run in the browser? The exercises implement LMS and its two-level HSS hierarchy. XMSS appears for comparison. An LMS public key names both the Merkle-tree algorithm and the one-time signature algorithm. Verification requires both identifiers to match supported parameters. The same check applies to the child public key in an HSS signature. RFC 8554, §6.3.
Which leaf can sign next? In the original lesson, generate a fresh LMS tree and sign the same notice twice. The first signature uses leaf 0 and the second uses leaf 1. The message can stay the same. Each signature spends a different one-time key.
A height-10 tree starts with 1,024 leaves. After two reservations, its next index is 2 and 1,022 leaves remain. Suppose a signer reserves leaf 2 and loses power before it can confirm delivery. Recovering safely means keeping leaf 2 spent. The next signature can use leaf 3. A signer that keeps its private key across restarts must save the advanced index before releasing a signature. RFC 8554 §5.4.1
Locks and Keys
What does SAME PAIR establish? The lesson exports the public key from its encryption and verification handles, then compares the bytes. Matching bytes show that the demo used the same RSA material for both jobs. In a new system, give signing and encryption independent keys. If signing access must be withdrawn, you can revoke the signing key and still decrypt archived records. RFC 8017, §6.
A friend can read your public key over an open channel. They still need a trusted way to check that the key belongs to you. A successful encryption round trip and a short on-screen key label answer different questions from that identity check.
Log Forge
Does a factor list that multiplies back prove every entry is prime? Both 3 × 5 × 13 and 15 × 13 give 195. The product check passes in both cases, even though 15 is composite. Multiplication checks the claimed product. Testing the entries answers a second question.
For the real-group table, the lab also checks each listed factor with twelve fixed Miller–Rabin bases. A passing entry is a probable prime under that check. A primality certificate would supply independently verifiable evidence that the entry is prime.
LtHash
What should happen when a book is removed twice? Start with a set containing one book. Remove it once and the set is empty. A second removal is refused, so the digest and the update counter stay unchanged. In signed-count arithmetic the second subtraction instead leaves a count of −1. Negative membership falls outside the finite-set security claim.
The Folly reference example performs four incremental updates, followed in the exhibit by twelve random updates. That makes sixteen item hashes for those updates. The independent checks perform additional hashing. Solana uses the same 1,024 words of 16 bits, or 2,048 bytes, with BLAKE3 for item expansion. The Folly example uses BLAKE2Xb. Solana SIMD-0215 and Meta’s description of LtHash.
LWE Hints
What does the gap in the Gaussian plot measure? At weight 1, a draw has 17 possible integer values, from −8 through 8. With 4,000 draws, ties are inevitable. The panel compares the fraction of observations below each integer-bin boundary with the cumulative probability predicted by a Gaussian curve. A gap of 0.06 means six percentage points at the boundary where the difference is largest.
The model predicts a standard deviation of √24 ≈ 4.90 at weight 1 and √768 ≈ 27.71 at weight 32. The usual continuous-distribution Kolmogorov–Smirnov cutoff cannot supply a 5% rejection rate for this discrete comparison. The chart illustrates the raw-hint sum. The paper’s separate assumptions about score variables and their independence require their own evidence.
Open the LWE Hints Gaussian plot · NIST on the continuous-distribution assumption
MAC Race
Can you authenticate an empty message? In the HMAC panel of MAC Race, enter the example key key, clear the message and compute HMAC-SHA-256. Its tag begins 5d5d1395. An empty message has zero bits to flip. You can still change one key bit: replacing key with jey gives a tag beginning 16ae82e9, with 116 of 256 bits changed.
Restore key and enter the one-byte message A. The tag now begins b1d20846. Flipping the lowest bit of that message turns it into @ and changes 121 of the 256 tag bits. If the grid shows 121 for an empty message, it is displaying the example for A. The changed-bit count measures diffusion for those inputs. Authentication depends on the MAC construction and keeping the key secret. HMAC definition, RFC 2104 §2
Masked Core
When does the fourth moment differ? In Masked Core, open Scope and find “When the average hides the difference.” Choose no noise and the fourth raw moment. For secret 0 versus secret 1, the fourth moments are 44 and 41. For the secret 0 versus secret 0 control, both are 44. To check 44 by hand, group the eight even-parity bit strings by their number of ones: one has zero, six have two, and one has four. Their average fourth power is (0 + 6 × 16 + 256) / 8 = 44. Adding the same noise distribution to both groups in the control keeps their moments equal.
Where does the AES round key go? Suppose the two shares are a and b, and the round key is k. XOR the round key into one share. Recombining gives (a ⊕ k) ⊕ b = (a ⊕ b) ⊕ k. Applying the same key to both shares cancels it, because k ⊕ k = 0.
Matsui Line
What does a balanced pair mean? Select a mask pair whose two parities agree on 8 of the 16 inputs. Its correlation is zero. This result belongs to that input mask and output mask. No four-bit permutation balances every nontrivial mask pair.
McEliece Gate
How much of a key does the preview show? The key-size panel shows 8,192 simulated bytes, or 8 KiB. Each pair of hex digits represents one byte. A complete mceliece348864 public key occupies 261,120 bytes, or 255 KiB. In decimal units that is 261.12 kB. The preview illustrates the size. Its random-looking bytes do not establish that a working key was generated. Parameter sizes and binary unit definitions.
NIST selected HQC in its fourth-round decision in 2025. ISO/IEC published the Classic McEliece amendment in June 2026.
Misty Lens
Which results belong to the current block? Open the corrected MISTY1 and KASUMI block exercise. Remove a hex digit from the block or key and seven old outputs clear. Restore the digit to recompute. The labels follow the Encrypt or Decrypt setting.
NTRU Classic
Can the centered value tell you whether a coefficient wrapped? The lab reduces each integer coefficient modulo 2048 into the interval from −1023 through 1024. Predict the result for 1025, then try −1023. Both display as −1023, one unit from the edge at −1024. Only 1025 wrapped. The distance on a centered plot cannot tell you which integer you started with or give a failure probability.
Try the two endpoints, 1024 and −1024. Both give 1024 because this lab keeps the positive value at a tie. In the decryption walkthrough, the saved encryption inputs let you compare each integer coefficient of 3rg + fm with its centered value. Matching two sides modulo 2048 checks the equation even when a coefficient wraps. Hoffstein, Pipher and Silverman, §§1.4–1.5
Why does the order of the two reductions matter? Enter 2047 above. After multiplying the private polynomial by the ciphertext modulo 2048, center each coefficient first. The residue 2047 becomes −1, which gives 2 modulo 3. Taking 2047 directly modulo 3 would give 1. Now try 2046 and predict both results. After the centered values are reduced modulo 3, multiply by the private polynomial’s inverse modulo 3 to recover the message polynomial.
What did the decryption check compare? The success message means that the recovered polynomial matches the message polynomial. The original text display drops a leading U+FEFF when it decodes those bytes. That character is invisible but occupies three UTF-8 bytes. In this example the message has 17 bytes and the recovered text shown on the original page has 14.
OPAQUE Gate
Who creates the registration record, and how many bytes does the client send? Register a classroom account in Exhibit 3. The server evaluates a blinded request. The client then builds the record and sends all three fields to the server.
- Client public key, 33 bytes in the lab’s compressed P-256 encoding.
- Masking key, 32 bytes.
- Envelope, 64 bytes comprising a 32-byte nonce and a 32-byte authentication tag.
The record totals 129 bytes. The server also keeps information for evaluating future blinded requests. Its OPRF secret and the demo’s credential identifier sit outside this three-field wire count. The client creates the masking key and envelope even though the original display labels both “server only.”
Nonce Collision
When is a repeat guaranteed? In the random-nonce calculator, select 32 bits and set the slider to 18. That gives 262,144 independent draws from 4,294,967,296 possible values. The original readout rounds to 100%. Multiplying the successive chances of avoiding a repeat gives a collision probability of about 99.96646%.
At slider position 32, every draw could still take a different value. One additional draw would guarantee a repeat by the pigeonhole principle. Slider position 33 passes that boundary.
ORAM Vault
Will my text fit in one block? The ORAM Vault editor stores up to 32 UTF-8 bytes. Eight 📚 characters take exactly 32 bytes. Nine take 36. A leading U+FEFF followed by A occupies four bytes (ef bb bf 41). Readback preserves U+FEFF even though it is invisible.
The editor pads short blocks with zero bytes and refuses a message ending in U+0000 before writing it, because a final NUL would be indistinguishable from padding. The field can also shorten long pastes before the byte check. Compare your intended text with what the field accepted before writing. Encoding Standard, UTF-8
Can the bars reveal the order of the accesses? Compare two lists of 80 paths. In one, cycle through leaves 0 to 15 five times. In the other, visit each leaf five times in a row before moving to the next. Both give five visits per leaf and a chi-square statistic of zero. Count adjacent repeats, though: the first list has zero and the second has 64. The histogram tests frequencies; it discards the ordering needed to check independence.
OT Gate
Did the receiver get everything the sender typed? In the original lesson, the sender’s form trims both messages before encrypting them. Try the sample below as message zero, then choose zero. Its first character is U+FEFF, followed by two spaces. It also ends with two spaces. The receiver shows “Café 🔐” (10 UTF-8 bytes) although the sender entered 17. The form changed the text before the transfer.
Pairing Gate
What would a future break of BLS mean for an old signature? Imagine two copies of a signed record. One has only the BLS signature. The other also has an independent trusted timestamp obtained while the signature was trustworthy. Once someone can recover the BLS key, a newly made signature can pass the same verification as an old one. The timestamp can still establish that the second signed record existed by a particular time, provided the archive renewed its evidence before its protections weakened. It does not establish who physically used the key.
RFC 3161, timestamping a signature · RFC 4998, renewing archival evidence
Poly1305 MAC
What tag does an empty message produce? In the original MAC playground, generate a fresh classroom key, clear the message, and choose Compute MAC. Compare the 32 hex digits of the tag with the last 32 hex digits of the key. They match. An empty message has zero blocks, so the accumulator stays at zero. Adding the 16-byte pad s gives the tag.
Choose Verify Original. For two 16-byte tags the verifier XORs corresponding byte pairs, then ORs those differences together. A zero result means all pairs matched. The loop visits every position. That is a property of the code; an elapsed-time guarantee for a browser needs separate evidence. RFC 8439, Poly1305 calculation · Security considerations
PQ Families
How large is the Classic McEliece 348864 public key? The public key is 261,120 bytes. Divide by 1,024 to get exactly 255 KiB, or divide by 1,000 to get 261.12 kB. The standalone size comparison labels the result 255 KiB.
How many cycles did the UOV team measure? Open the Multivariate card and find uov-Ip. For the classic variant with expanded keys, the submission team’s AVX2 implementation on an Intel Xeon E3-1275 v5 (Skylake) took a median of 3,275,886 cycles to generate a key, 117,422 to sign, and 74,252 to verify. The team measured 100 key generations and 1,000 operations each for signing and verification. Read the Skylake columns in Table 2 of the UOV version 3.0 submission.
Which bytes does the handshake chart count? The chart adds the selected key shares, certificate public keys and signatures. Its P-256 comparison counts 64 raw bytes per public key and 64 per signature before encoding. A TLS capture also contains certificate fields, framing and extensions. The exhibit’s hybrid switch adds classical authentication as well as classical key agreement. The standardized hybrid groups specify key agreement. TLS 1.3 (RFC 8446) and hybrid TLS groups (RFC 10024).
PSI Gate
How should I read the published hex strings? The scalar for Alice is the integer seven. PSI Gate displays it in 32 bytes ending in 07. The points use the canonical little-endian ristretto255 encoding. Copy each point in the byte order shown. The OPRF tags are SHA-256 digests, also copied in output order.
The example calls for a scalar of seven even if your library accepts a scalar as 32 little-endian bytes beginning with 07. Applying seven to the first hashed input gives a point beginning 90 e6 2d 0f. The final intersection contains Bob’s and Mom’s addresses. RFC 9496, ristretto255 encoding · Published vector bytes
Protocol Checker
What does the padlock establish before you run the checker? The selected protocol starts at “Not run yet.” The padlock describes a rule of the model: opening an encrypted message requires the matching key. At this point the selected search has produced no evidence about the protocol.
Try a paper example with three numbered envelopes. You want to know whether any contains a blue card. Open two and find only white cards. If the limit is two, the third envelope remains unknown. Open the last envelope and find a white card: now all three have been checked. A search that reaches its state limit and one that exhausts its modeled cases give different evidence. In either case the conclusion applies to the question asked. Checking who learns a secret also leaves a separate question: did the intended peer take part?
Open Protocol Checker · ProVerif manual, secrecy queries and correspondence assertions
Rekey Relay
Can authenticated text lose a character on display? A message beginning with U+FEFF followed by “Café 📚” occupies 13 UTF-8 bytes. After the normal relay steps, the original decoder drops the leading U+FEFF and displays the remaining 10 bytes. In this case the message passed authentication. The difference arose when the browser decoded the bytes as text.
Which relay steps compute a fresh pairing? Follow the AFGH path from Alice to Bob. The lab computes its generator Z once at startup. Creating a key pair uses one G2 scalar multiplication and one exponentiation in GT. Encrypting a level-2 message uses the stored public key. Neither step needs a fresh pairing. If Alice opens the level-2 message herself, she computes one pairing. If the proxy transforms it for Bob, the proxy computes one pairing and Bob opens the resulting level-1 message without another. The group elements grow from 624 to 1,152 bytes at the proxy while the encrypted message payload stays the same. Inspect the operations in the standalone lesson.
What did the proxy journal find? The journal searches for the exact UTF-8 bytes of the current message. The single character é uses two bytes. With an empty message or journal, the comparison is pending. A short byte sequence can match by coincidence. An unsuccessful search only establishes that the literal bytes did not occur in the recorded fields.
Reshare Circle
Where does generator 4 come from? The lab uses the 2048-bit prime p from RFC 3526 §3. That specification gives generator 2. The lesson squares it to obtain 4 and uses that generator in the subgroup of order (p − 1)/2.
Search Vault
What does the 50-search timer measure? In Search Vault, Exhibit 6 times 50 encrypted searches and divides the elapsed time by 50. It cycles through 14 keywords: the first eight are searched four times each and the other six three times each. The result is the mean latency for that mix in your browser. To calculate overhead relative to a plaintext index, you also need a plaintext run over the same documents and queries. The exhibit supplies only the encrypted timing.
Which query does a verdict describe? The returned rows belong to the keyword you submitted. After editing the keyword, run the search again. After changing the server behavior, rerun the integrity check. A green result left on screen from the previous settings describes that earlier response.
Shelf Oracle
What does the server return? In the direct BFV fold, each term is still a ciphertext. For plaintext records 3, 5 and 7 and an encrypted selection of the middle record, the three terms decrypt to 0, 5 and 0. The sum is a ciphertext that decrypts to 5. The server sends that ciphertext, and the client decrypts it.
How much of the catalog has been processed? After one step the server has processed one of the 64 records. Stepping eight more brings the total to nine. Before the selected record, the running sum can decrypt to zero even when the ciphertext coefficients are nonzero. At step 64, with enough noise budget, the final sum decrypts to the selected record.
When does the compressed query save bytes? In the 27-bit comparison, count both directions. A direct request and response use 442,368 + 6,912 = 449,280 bytes. A compressed request and its four responses use 27,648 + 27,648 = 55,296 bytes, plus 746,520 bytes for the reusable keys. The compressed route costs 801,816 bytes after one query and 857,112 after two. The direct route costs 449,280 and 898,560 bytes respectively. If the same keys are reused, the compressed route saves 41,448 bytes by the second query. These totals count the exhibit’s serialized payloads.
Simon Period
What is the textbook promise? For a nonzero secret s, the promise is f(x) = f(y) exactly when y = x or y = x ⊕ s. The first case matters because every input has the same output as itself. The performance comparison describes how query counts grow with input width. Either method can finish first in one small trial.
SM2 Forge
Which identity belongs to the signature? RFC 8998 uses the 23 ASCII bytes of TLSv1.3+GM+Cipher+Suite for the TLS 1.3 handshake signature. For verifying an SM2 signature on a certificate, the usual identifier is the 16 ASCII bytes of 1234567812345678. A certificate authority can choose another value.
Enter each identity in the Signature pane and choose “Build Z_A and sign.” Predict the two-byte big-endian bit length, ENTL, before comparing the trace. The handshake identity gives 00b8 (184 bits). The usual certificate identifier gives 0080 (128 bits). Selecting the numeric verifier identity accepts the second signature. RFC 8998, section 3.3.4
Which inputs distinguish the two layouts? C2 holds the encrypted message. When the message is empty, C2 has zero bytes, so the orders C1C2C3 and C1C3C2 produce identical bytes. For the text round trip, an initial U+FEFF entered as message content counts as a character. Check that it comes back even though it is invisible.
SPAKE Gate
Who agrees on which key? The honest-login panel uses one built-in classroom password for both exchanges. Before rerunning, predict which changes: the key bytes, their lengths, or both. In SPAKE2 the two peers agree within that exchange. The peers in SPAKE2+ agree within their own exchange.
Open the transcript details. In the lab’s SHA-256 profiles, SPAKE2 takes the first 16 bytes of its transcript hash as Ke (32 hex digits). SPAKE2+ uses its transcript hash with HKDF and the label SharedKey to produce K_shared (32 bytes, 64 hex digits). Run another honest login. Fresh randomness changes each displayed key while those lengths stay the same. Both session keys are local outputs.
Each protocol exchanges two public shares and a confirmation in each direction. SPAKE2+ also computes the point V locally. Matching lengths for displayed public fields alone cannot identify which protocol an application negotiated.
Open the honest-login panel · SPAKE2 key schedule · SPAKE2+ key schedule
SPDZ Forge
Three hospitals want the population variance of their counts. For three inputs the protocol opens the integer M = 3Σx² − (Σx)². Divide by nine to get the variance. You can check the same numerator by summing the squared differences of the three pairs of counts.
Try 0, 0, 990004. Two pairs differ by 990004, so the numerator is 1960215840032. Dividing by nine and rounding to four decimal places gives 217801760003.5556. If the exhibit shows .5555 twice, both displays rounded the same floating-point approximation. A green authentication check covers the integer the hospitals opened.
Now try 17, 17, 17. Every pairwise difference is zero. Each hospital knows its own count, so a public variance of zero lets each one infer that the other two counts are also 17.
Open the three-hospital variance exercise
Which step needs zero messages? In Addition is free, each party can add its two shares locally. For a small example, work modulo 17. Give the three parties shares (4, 7, 1) of 12 and (8, 9, 13) of 13. Their local sums are (12, 16, 14). To open the answer, the parties communicate those sums and combine them: 42 modulo 17 is 8, exactly like 12 + 13 modulo 17. The original panel uses a larger field. Its green check compares the opened result with the classroom inputs. The MAC shares are displayed separately; this panel does not verify the opened result with them.
SNARK Arena
How many bytes does this proof occupy? In the live proving panel, set the slider to 3, generate a proof and verify it. The public output is 35 because 3³ + 3 + 5 = 35.
A BN254 Groth16 proof has three points. Its eight affine base-field coordinates at 32 bytes each occupy 256 bytes in fixed-width uncompressed binary. They occupy 128 bytes in a compressed encoding. The browser returns a JavaScript object. Serializing that object as compact JSON includes decimal strings and metadata, so its byte count depends on the proof.
Download this sample proof for public output 35 and check its file size: 723 bytes. An independent pairing check accepted these exact points with public output 35 and rejected the same points with output 36. The verification key and the public signal are separate from the proof file. snarkjs proof and public-input files
SPHINCS Ledger
Select SHA2-128f and sign a classroom message. Predict the public key size before opening the mechanism view. The top tree root occupies 16 bytes. The public seed occupies another 16 bytes, giving a 32-byte public key in the order PK.seed || PK.root.
The 17,088-byte signature includes a 16-byte randomizer, a 3,696-byte FORS signature, and 13,376 bytes of hypertree signatures. A bottom leaf address can be selected again. The WOTS+ key at that address still signs the same FORS public key.
Open SPHINCS Ledger · FIPS 205, Table 2 and Algorithms 18–19
Sphinx Mix
Can a relay tell that it is last when the packet never changes size? Open Sphinx Mix, select Peel and advance three times. The first two relays read a next-hop instruction. The third reads END and receives a delivery identifier. It knows it is the exit from that instruction. All three incoming packets were the same length.
On Fixed length, compare one, three and five hops. In this lab the routing block is always 176 bytes. Add the 32-byte group element and 16-byte header MAC for a 224-byte header. With the 1024-byte payload, each packet is 1248 bytes. The filler in the last routing block grows from 0 to 64 to 128 bytes across those three paths. The header MAC checks the routing block; the recipient separately checks the delivered payload’s structure. In this lab that includes a 16-byte zero prefix in the decrypted payload. The prefix check detects corruption and gives the recipient no proof of the sender’s identity. Sphinx, §3
Syndrome Hints
What does a measured dot represent? The chart uses 15 trials. It sorts their operation counts, takes the eighth count (the median), then plots its base-2 logarithm. Try fourteen counts of 16 and one count of 256. The median is 16, so the dot sits at 4 on the log scale. The arithmetic mean is 32, which would sit at 5. The model curve describes expected work, so the measured dot need not land on it.
What does the p10–p90 spread show? With 15 sorted trial counts, the lab uses the second and fourteenth counts as the endpoints, then converts them to the log scale. For counts of 1, 2, 4, and so on through 16,384, the endpoints are 2 and 8,192 operations, or 1 and 13 on the chart’s log scale. The median is 128 operations, or 7 on that scale. The spread describes the trial results.
Does matching the syndrome identify just one vector? Use a matrix with rows 110 and 001. Read each row as a parity check: the first adds the first two bits modulo two, and the second reads the third bit. Try 100 and 010. Each has weight one and gives syndrome 10. Now try 001: its syndrome is 01. In the original lab, the generator plants a matching vector. Its weight and syndrome alone establish that it fits; uniqueness requires separate evidence.
Which standards milestone belongs to each scheme? ISO/IEC standardized Classic McEliece in June 2026. NIST selected HQC for standardization in March 2025. The small decoding examples in the lesson illustrate a mathematical problem. Their timings describe only the instances shown. ISO/IEC 18033-2, Amendment 2 and NIST’s HQC selection.
Traitor Trace
How many wraps at the two endpoints? With zero subscribers revoked, one wrapped copy of the session key covers the whole tree. With everyone revoked, zero wraps are needed. The subset-difference bound of 2r − 1 applies when the number revoked, r, is at least one and smaller than the total number of subscribers.
Can two revocations give different header sizes? Try two pairs in the 16-subscriber tree. Revoking #1 and #2 needs three complete-subtree wraps or one subset-difference wrap. Revoking #1 and #9 needs six or two, respectively. A separate wrap for each allowed subscriber would need 14 in either case. The count depends on where the revoked leaves sit in the tree. See the original subset-cover construction, sections 3.1–3.2.
What do 960 bytes count? Sixteen separate AES-GCM key wraps contain 960 bytes: each has a 12-byte IV, a 32-byte encrypted session key, and a 16-byte tag. The exhibit stores the subset identifier separately and omits it from the byte counter. A complete wire header would also need to encode the recipients or subsets and any framing required by its format.
How much does one revocation cost? Revoke any one leaf in the 16-subscriber tree. A separate wrap for each remaining subscriber uses 15 wraps (900 bytes). The complete-subtree cover uses four sibling subtrees of sizes 8, 4, 2, and 1, for four wraps (240 bytes). One subset difference covers the whole tree minus the revoked leaf, for one wrap (60 bytes). These figures count the wraps alone.
X3DH Wire
Does the handshake need a one-time prekey? If Bob’s bundle contains one, Alice adds a fourth Diffie–Hellman result using her ephemeral key and Bob’s one-time prekey. With 32 bytes per X25519 result, that gives 128 bytes of DH material. If Bob is offline and the server’s stock is empty, the bundle can still support a three-exchange handshake with 96 bytes of DH material. These counts are for the DH results before X3DH’s fixed KDF prefix. Bob deletes the private one-time prekey after successfully decrypting the first message. That deletion strengthens forward secrecy. Signal X3DH specification, sections 3.3–3.4