Slight refactor, prepare for QWORD upgrade

This commit is contained in:
Andrew
2023-06-04 15:40:08 +03:00
parent 3922223b9f
commit 1c5f93b687
5 changed files with 13 additions and 13 deletions

View File

@@ -51,7 +51,7 @@ bool verifyXPKey(EC_GROUP *eCurve, EC_POINT *generator, EC_POINT *publicKey, cha
QWORD sig = 0;
unbase24(bKey, cdKey);
unbase24((BYTE *)bKey, cdKey);
// Extract data, hash and signature from the bytecode.
unpackXP(bKey, pID, checkHash, sig);
@@ -241,7 +241,7 @@ void generateXPKey(EC_GROUP *eCurve, EC_POINT *generator, BIGNUM *order, BIGNUM
// the CD-key longer than 25 characters.
// Convert the key to Base24.
base24(pKey, bKey);
base24(pKey, (BYTE *)bKey);
BN_free(c);
BN_free(s);