diff --git a/tools/update-server/qtox-updater-genkeys/main.cpp b/tools/update-server/qtox-updater-genkeys/main.cpp index c17c486ae..55727b508 100644 --- a/tools/update-server/qtox-updater-genkeys/main.cpp +++ b/tools/update-server/qtox-updater-genkeys/main.cpp @@ -9,7 +9,7 @@ int main(int argc, char *argv[]) QCoreApplication a(argc, argv); (void) a; - QByteArray skey(crypto_box_SECRETKEYBYTES, 0); + QByteArray skey(crypto_sign_SECRETKEYBYTES, 0); QFile skeyFile("qtox-updater-skey"); if (!skeyFile.open(QIODevice::WriteOnly)) { @@ -17,7 +17,7 @@ int main(int argc, char *argv[]) return 1; } - QByteArray pkey(crypto_box_PUBLICKEYBYTES, 0); + QByteArray pkey(crypto_sign_PUBLICKEYBYTES, 0); QFile pkeyFile("qtox-updater-pkey"); if (!pkeyFile.open(QIODevice::WriteOnly)) { @@ -25,7 +25,7 @@ int main(int argc, char *argv[]) return 1; } - crypto_box_keypair((uint8_t*)pkey.data(), (uint8_t*)skey.data()); + crypto_sign_keypair((uint8_t*)pkey.data(), (uint8_t*)skey.data()); skeyFile.write(skey); pkeyFile.write(pkey); diff --git a/tools/update-server/qtox-updater-sign/main.cpp b/tools/update-server/qtox-updater-sign/main.cpp index 21a0ef535..21f1c252d 100644 --- a/tools/update-server/qtox-updater-sign/main.cpp +++ b/tools/update-server/qtox-updater-sign/main.cpp @@ -28,7 +28,6 @@ int main(int argc, char* argv[]) return 1; } QByteArray skeyData = skeyFile.readAll(); - skeyData = QByteArray::fromHex(skeyData); skeyFile.close(); unsigned char sig[crypto_sign_BYTES];