mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
style
This commit is contained in:
parent
9a921d6944
commit
cef1f21a34
1 changed files with 3 additions and 3 deletions
|
@ -29,7 +29,7 @@ bool IsCryptoHelperPresent(void) {
|
||||||
uint8_t resp[20] = {0};
|
uint8_t resp[20] = {0};
|
||||||
ExchangeAPDUSC(true, version, sizeof(version), true, true, resp, sizeof(resp), &resp_len);
|
ExchangeAPDUSC(true, version, sizeof(version), true, true, resp, sizeof(resp), &resp_len);
|
||||||
|
|
||||||
if (strstr("CryptoHelper", (char*)resp) == 0) {
|
if (strstr("CryptoHelper", (char *)resp) == 0) {
|
||||||
PrintAndLogEx(INFO, "Found smart card helper");
|
PrintAndLogEx(INFO, "Found smart card helper");
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
@ -56,11 +56,11 @@ static bool executeCrypto(uint8_t ins, uint8_t *src, uint8_t *dest) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Decrypt(uint8_t *src, uint8_t *dest){
|
bool Decrypt(uint8_t *src, uint8_t *dest) {
|
||||||
return executeCrypto(CARD_INS_DECRYPT, src, dest);
|
return executeCrypto(CARD_INS_DECRYPT, src, dest);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Encrypt(uint8_t *src, uint8_t *dest){
|
bool Encrypt(uint8_t *src, uint8_t *dest) {
|
||||||
return executeCrypto(CARD_INS_ENCRYPT, src, dest);
|
return executeCrypto(CARD_INS_ENCRYPT, src, dest);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue