netmdocm
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
netmdocm [2010/06/09 07:35] – megadiscman | netmdocm [2011/01/16 14:33] – nopsled | ||
---|---|---|---|
Line 905: | Line 905: | ||
===== maclist(1) ===== | ===== maclist(1) ===== | ||
- | /* | + | XOR the SalOmgId |
- | Procedure prototype: | + | |
- | | + | |
- | + | ||
- | Input: | + | |
- | + | ||
- | SalNonConstPointer const &, | + | |
- | SalPointer const &, | + | |
- | SalOmgId | + | |
- | long, | + | |
- | SalExtrinsicsProg const & | + | |
- | + | ||
- | Output: | + | |
- | + | ||
- | long | + | |
- | + | ||
- | */ | + | |
===== Sample input: ===== | ===== Sample input: ===== | ||
Line 947: | Line 931: | ||
} ; | } ; | ||
- | |||
- | XOR the SalOmgId with a constant key, expand that to a symmetric key and apply to the SHA-1 hash of MACLIST. | ||
===== maclist(8) ===== | ===== maclist(8) ===== | ||
Line 1513: | Line 1495: | ||
</ | </ | ||
- | ===== icv.ocm Decompiled ===== | ||
- | |||
- | < | ||
- | |||
- | // | ||
- | // Generate a SalOmgId | ||
- | // | ||
- | // | ||
- | // | ||
- | // < | ||
- | // | ||
- | // Note: When OpenMG is used (trough the UI) for the first time this value is generated, | ||
- | // by calling the salwrap function getSalOmgId. | ||
- | // | ||
- | // const unsigned __int8 *__cdecl getSalOmgId() | ||
- | // | ||
- | blob_t icv(07) | ||
- | { | ||
- | | ||
- | | ||
- | data = BCX_01_Concat(PrefixSalOmgId, | ||
- | Push 1 | ||
- | | ||
- | | ||
- | } | ||
- | </ | ||
- | |||
- | ===== maclist.ocm | ||
- | |||
- | // maclist(1) | ||
- | // | ||
- | // work in progress | ||
- | |||
- | < | ||
- | |||
- | int | ||
- | maclist_0x01(blob_t SalOmgId, blob_t maclist2dat, | ||
- | { | ||
- | static blob_t pad[16] = {0x20, 0xBE, 0xDE, 0x72, 0xA3, 0xB8, 0x62, 0x60, | ||
- | 0x71, 0x44, 0x3A, 0x33, 0xE9, 0xAC, 0x69, 0xCE}; | ||
- | static SHA1state, hash_maclist, | ||
- | |||
- | SHA1state | ||
- | BCX_1A_SHA1AddData(maclist, | ||
- | hash_maclist | ||
- | |||
- | xor_SalOmgId | ||
- | hash_maclist_salomgid = salenc_sha1(SalOmgId_xor, | ||
- | |||
- | hash_maclist == hash_xorSalOmgId? | ||
- | } | ||
- | </ |
netmdocm.txt · Last modified: 2024/05/21 14:50 by nopsled