mirror of
https://github.com/Neo-Desktop/WindowsXPKg
synced 2025-02-02 08:51:08 +02:00
Fix multiple key issue
This commit is contained in:
parent
3134a6f7a3
commit
8ee1acc2be
11
src/cli.cpp
11
src/cli.cpp
@ -433,21 +433,20 @@ int CLI::BINK2002Generate() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
PIDGEN3::BINK2002::Generate(this->eCurve, this->genPoint, this->genOrder, this->privateKey, pChannelID, pAuthInfo, false, this->pKey);
|
PIDGEN3::BINK2002::Generate(this->eCurve, this->genPoint, this->genOrder, this->privateKey, pChannelID, pAuthInfo, false, this->pKey);
|
||||||
fmt::print("\n");
|
|
||||||
|
|
||||||
bool isValid = PIDGEN3::BINK2002::Verify(this->eCurve, this->genPoint, this->pubPoint, this->pKey);
|
bool isValid = PIDGEN3::BINK2002::Verify(this->eCurve, this->genPoint, this->pubPoint, this->pKey);
|
||||||
if (isValid) {
|
if (isValid) {
|
||||||
CLI::printKey(this->pKey);
|
CLI::printKey(this->pKey);
|
||||||
if (i < this->total - 1 || this->options.verbose) {
|
if (i < this->total - 1 || this->options.verbose) { // check if end of list or verbose
|
||||||
fmt::print("\n");
|
fmt::print("\n");
|
||||||
}
|
}
|
||||||
this->count += isValid;
|
this->count += isValid; // add to count
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (this->options.verbose) {
|
if (this->options.verbose) {
|
||||||
CLI::printKey(this->pKey);
|
CLI::printKey(this->pKey); // print the key
|
||||||
fmt::print(" [Invalid]");
|
fmt::print(" [Invalid]"); // and add " [Invalid]" to the key
|
||||||
if (i < this->total - 1) {
|
if (i < this->total - 1) { // check if end of list
|
||||||
fmt::print("\n");
|
fmt::print("\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user