MCPcopy Create free account
hub / github.com/Endermanch/XPKeygen / packServer

Function packServer

src/server.cpp:38–49  ·  view source on GitHub ↗

Packs the Windows Server 2003-like Product Key. */

Source from the content-addressed store, hash-verified

36
37/* Packs the Windows Server 2003-like Product Key. */
38VOID packServer(
39 QWORD (&pRaw)[2],
40 BOOL pUpgrade,
41 DWORD pChannelID,
42 DWORD pHash,
43 QWORD pSignature,
44 DWORD pAuthInfo
45) {
46 // AuthInfo [113..104] <- Signature [103..42] <- Hash [41..11] <- Channel ID [10..1] <- Upgrade [0]
47 pRaw[0] = FIRSTNBITS(pSignature, 22) << 42 | (QWORD)pHash << 11 | (QWORD)pChannelID << 1 | pUpgrade;
48 pRaw[1] = FIRSTNBITS(pAuthInfo, 10) << 40 | NEXTSNBITS(pSignature, 40, 22);
49}
50
51
52/* Verifies the Windows Server 2003-like Product Key. */

Callers 1

generateServerKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected