Skip to content

Commit

Permalink
Removed useless comments from the verifyInternalAuthenticateResponse …
Browse files Browse the repository at this point in the history
…method
  • Loading branch information
Moreno Gentili committed Jul 1, 2018
1 parent eec92fa commit 15db0cd
Showing 1 changed file with 1 addition and 31 deletions.
32 changes: 1 addition & 31 deletions cie_PN532.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,38 +414,8 @@ bool cie_PN532::internalAuthenticate(byte *responseBuffer, word *responseLength,
*/
/**************************************************************************/
bool cie_PN532::verifyInternalAuthenticateResponse(cie_Key *pubKey, byte *cypher, const word cypherLength, const byte *message, const word messageLength) {

return false;

//To be implemented
/*
BigNumber *message = new BigNumber();
byteArrayToBigNumber(cypher, cypherLength, message);
delete [] cypher;
BigNumber *modulus = new BigNumber();
byteArrayToBigNumber(pubKey->modulus, pubKey->modulusLength, modulus);
BigNumber *exponent = new BigNumber();
byteArrayToBigNumber(pubKey->exponent, pubKey->exponentLength, exponent);
delete pubKey;
message->powMod(*exponent, *modulus);
delete exponent;
delete modulus;
bool success = true;
for (word i = cypherLength-messageLength; i < cypherLength; i++) {
if (message[i] != cypher[i]) {
success = false;
break;
}
}
delete message;
return success;
*/
return false;
}


Expand Down

0 comments on commit 15db0cd

Please # to comment.