Container format¶
Note
This section is scaffolded. Migrate the v2 / v3 header diagrams from the
repo-root README.md and the “StegX Format v3 finalization” section of
CHANGELOG.md (2.0.0 entry) here in a follow-up PR.
v3 header (shipped in 2.0.0)¶
Field |
Size |
Notes |
|---|---|---|
|
1 B |
0x58 |
|
1 B |
0x03 |
|
1 B |
0x02 Argon2id, 0x01 PBKDF2 |
|
1 B |
keyfile / dual-cipher / yubikey / adaptive / panic |
|
8 B |
|
|
16 B |
random per encode — HKDF-Extract pre-mix |
|
12 B |
|
|
12 B |
unused unless FLAG_DUAL_CIPHER |
|
12 B |
unused unless FLAG_YUBIKEY |
|
2 B |
big-endian, ≤ 512 |
|
4 B |
AAD-canonicalised to 0 before pack |
|
N B |
variable, 0 … 512 |
The full header (base + kms_wrap) is authenticated as AEAD associated data.