From 56448cca0d7498d7b1ae5d449535de06ed0763b6 Mon Sep 17 00:00:00 2001 From: Guoliang Chen Date: Wed, 16 Sep 2026 00:18:57 -0700 Subject: [PATCH] qa: fix wrong hex annotation for the verified magic-number example 334517251 decimal is 0x13F0_5403, not 0x13EC_4F03; the decimal value (independently re-verified against a Python SHA-512 chain) was already correct, only the hex gloss was wrong. --- docs/protocol.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/protocol.md b/docs/protocol.md index dccbc8f..76b2a83 100644 --- a/docs/protocol.md +++ b/docs/protocol.md @@ -477,7 +477,7 @@ sees them. One subsection per lane, appended, never rewritten. default unchecked context; it wraps and is then reinterpreted by the `(uint)` cast. Reproduce with wrapping 32-bit addition — `&+` in Swift, not `+`, which would trap. **[verified]** against an independent SHA-512 - implementation: key `abcdefghijklmnop` ⇒ magic `334517251` (0x13EC_4F03). + implementation: key `abcdefghijklmnop` ⇒ magic `334517251` (0x13F0_5403). 4. **The stream preamble is 48 bytes, not 32.** 16-byte salt and 16-byte IV in the clear (`Encryption.cs:124-129`), then one 16-byte *ciphertext* block — the sacrificial block is random plaintext written *through* the cipher