No Sony document describes these files. This page records what the module files of the
OpenMG package contain (see Sources). Offsets are in bytes from the start of the file;
lengths use the BER form of ASN.1: one byte below 80, otherwise 81 nn, 82 nn nn or
83 nn nn nn.
Type-01 file
| Offset | Size | Field | Meaning |
|---|---|---|---|
0 | 14 | header | 03 01 00 00 05 00 10 2c 00 00 01 01 04 08: version 3, mode 1, fixed bytes, and the OCTET STRING header of the tag. |
14 | 8 | tag | 6a 35 a2 1d 8c 3c 2c 0c in every file read. |
22 | 1 | key block tag | 7e. |
23 | 4 | ring header | 04 82 20 00: an OCTET STRING of 8192 bytes. |
27 | 8192 | ring | The key table of the cipher. |
8219 | 5 | seed block | 74 02 hh ll 73: the 16-bit seed hhll and the tag 73 that starts the cipher text. |
8224 | … | stream | Encrypted bytes to the end of the file; see program. |
All 25 type-01 files read carry the same 8192-byte ring; only the seed differs (0x49e8 to 0x4a02).
The ring is not derived from the seed.
Mode-2 file
| Offset | Size | Field | Meaning |
|---|---|---|---|
0 | 10 | header | 03 02 00 00 05 00 10 2c 00 00; the files named *_dnk have 03 02 00 00 01 00 00 00 00 00. |
10 | 8 | group id | Files with the same group id start with identical bytes for thousands of bytes, so the keystream depends on the group id alone. |
18 | … | body | Encrypted. The key is not stored in the file. |
About eleven group ids occur. Trying the ring cipher with every 16-bit and 32-bit starting state against a type-01 layout found no match, so the body is shown as bytes.
Init module
init.ocm1 starts 04 83 hh mm ll, an OCTET STRING of that length, and inside it a type-01 header, the tag and
7e as above. After 7e comes 02 hh ll 73 directly: there is no ring, and the seed is 0x498e. The body is
encrypted with the common ring of the type-01 files. A second OCTET STRING follows the wrapper.
Placeholder
Ten module names of the package are two-byte files, ff ff.
Sources
- Analysis of the OpenMG package of a SonicStage 4.3 installer: 25 type-01 files, 27 mode-2 files, 10 placeholders and
init.ocm1(owner ruling QC088, 2026-12-03).