mirror of
https://github.com/Neo-Desktop/WindowsXPKg
synced 2025-12-03 08:45:13 +02:00
[Server] Comment Fix 2
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
#include "BINK2002.h"
|
#include "BINK2002.h"
|
||||||
|
|
||||||
/* Unpacks the Windows Server 2003-like Product Key. */
|
/* Unpacks a Windows Server 2003-like Product Key. */
|
||||||
void BINK2002::Unpack(
|
void BINK2002::Unpack(
|
||||||
QWORD (&pRaw)[2],
|
QWORD (&pRaw)[2],
|
||||||
BOOL &pUpgrade,
|
BOOL &pUpgrade,
|
||||||
@@ -34,7 +34,7 @@ void BINK2002::Unpack(
|
|||||||
pAuthInfo = NEXTSNBITS(pRaw[1], 10, 40);
|
pAuthInfo = NEXTSNBITS(pRaw[1], 10, 40);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Packs the Windows Server 2003-like Product Key. */
|
/* Packs a Windows Server 2003-like Product Key. */
|
||||||
void BINK2002::Pack(
|
void BINK2002::Pack(
|
||||||
QWORD (&pRaw)[2],
|
QWORD (&pRaw)[2],
|
||||||
BOOL pUpgrade,
|
BOOL pUpgrade,
|
||||||
@@ -48,7 +48,7 @@ void BINK2002::Pack(
|
|||||||
pRaw[1] = FIRSTNBITS(pAuthInfo, 10) << 40 | NEXTSNBITS(pSignature, 40, 22);
|
pRaw[1] = FIRSTNBITS(pAuthInfo, 10) << 40 | NEXTSNBITS(pSignature, 40, 22);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Verifies the Windows Server 2003-like Product Key. */
|
/* Verifies a Windows Server 2003-like Product Key. */
|
||||||
bool BINK2002::Verify(
|
bool BINK2002::Verify(
|
||||||
EC_GROUP *eCurve,
|
EC_GROUP *eCurve,
|
||||||
EC_POINT *basePoint,
|
EC_POINT *basePoint,
|
||||||
@@ -182,6 +182,7 @@ bool BINK2002::Verify(
|
|||||||
return compHash == pHash;
|
return compHash == pHash;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Generates a Windows Server 2003-like Product Key. */
|
||||||
void BINK2002::Generate(
|
void BINK2002::Generate(
|
||||||
EC_GROUP *eCurve,
|
EC_GROUP *eCurve,
|
||||||
EC_POINT *basePoint,
|
EC_POINT *basePoint,
|
||||||
|
|||||||
Reference in New Issue
Block a user