From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "identification" |
|---|
| subject | "Format:MIX (Westwood)" |
|---|
| claim | "The MIX variant is told from the first u16: non-zero means a Tiberian Dawn file (it is the file count, no flags); zero means RA/TS/RA2, with flags in the next u16 (bit 0x2 = Blowfish-encrypted header)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:MIX (Westwood)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | method | "header check" |
|---|
| indicator | "u16 at 0 != 0: C&C, header at 0; u16 at 0 == 0: flags at 2, header at 4; flags & 2: 80-byte key block at 4 then Blowfish-decrypted header at 84" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "MixFile constructor, ParseHeader and DecryptHeader" |
|---|
| repo | "OpenRA/OpenRA" |
|---|
| commit | "e180e3225f3930272dd451917467631618f8976f" |
|---|
| path | "OpenRA.Mods.Cnc/FileSystem/MixFile.cs" |
|---|
|
| type | "source" |
|---|
| detail | "Constructor: isCncMix = s.ReadUInt16() != 0; if not, isEncrypted = (ReadUInt16() & 0x2) != 0; ParseHeader offset 0 (C&C) or 4; DecryptHeader(s, 4): keyblock = ReadBytes(80), blocks read from offset + 80." |
|---|
| repo | "https://github.com/OpenRA/OpenRA" |
|---|
| commit | "e180e3225f3930272dd451917467631618f8976f" |
|---|
| path | "OpenRA.Mods.Cnc/FileSystem/MixFile.cs" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T12:40:46.362Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T09:16:31.414Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read the MixFile constructor, ParseHeader and DecryptHeader in OpenRA.Mods.Cnc/FileSystem/MixFile.cs at the cited commit: isCncMix = ReadUInt16() != 0, flags u16 read only when it is zero with & 0x2 meaning encrypted, header parsed at 0 (C&C) or 4, DecryptHeader(s, 4) reads an 80-byte key block. Did not read the Blowfish/RSA key code itself. A Tiberian Dawn file with zero entries would be classed as RA/TS by this test." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-18T22:32:43.383Z" |
|---|
| summary | "Raise to high: MixFile constructor read at the cited commit: isCncMix = ReadUInt16() != 0; flags = next u16, 0x2 = encrypted; DecryptHeader(s, 4) reads an 80-byte key block, then blocks from offset…" |
|---|
| changed | |
|---|
|
|
|---|