merge server and confid with xpkey, add LH keys (#18)
* merge server and confid with xpkey, add LH keys * improve error handling * update README.md * fix line endings * reorder products section of keys.json * use options as global variable * rename genServer to isBink2002 * small refactor * handle unknown error codepath on confirmation id remove redundant else for BINK1998 generation * finish conversion from std::cout -> fmt::print(); --------- Co-authored-by: Neo <321592+Neo-Desktop@users.noreply.github.com>
This commit is contained in:
11
src/xp.cpp
11
src/xp.cpp
@@ -219,10 +219,13 @@ void generateXPKey(
|
||||
// Pack product key.
|
||||
packXP(pRaw, pSerial, pHash, pSignature);
|
||||
|
||||
fmt::print(" Serial: 0x{:08x}\n", pSerial);
|
||||
fmt::print(" Hash: 0x{:08x}\n", pHash);
|
||||
fmt::print(" Signature: 0x{:08x}\n", pSignature);
|
||||
fmt::print("\n");
|
||||
if (options.verbose) {
|
||||
fmt::print("Generation results:\n");
|
||||
fmt::print(" Serial: 0x{:08x}\n", pSerial);
|
||||
fmt::print(" Hash: 0x{:08x}\n", pHash);
|
||||
fmt::print(" Signature: 0x{:08x}\n", pSignature);
|
||||
fmt::print("\n");
|
||||
}
|
||||
|
||||
EC_POINT_free(r);
|
||||
} while (pRaw[1] > BITMASK(50));
|
||||
|
||||
Reference in New Issue
Block a user