mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
style
This commit is contained in:
parent
9ecd3dc3ce
commit
6af2df51bf
1 changed files with 6 additions and 2 deletions
|
@ -164,14 +164,18 @@ int originality_check_verify_ex(uint8_t *data, uint8_t data_len, uint8_t *signat
|
||||||
}
|
}
|
||||||
|
|
||||||
for (uint8_t i = 0; i < ARRAYLEN(manufacturer_public_keys); i++) {
|
for (uint8_t i = 0; i < ARRAYLEN(manufacturer_public_keys); i++) {
|
||||||
if ((type != PK_ALL) && (type != manufacturer_public_keys[i].type))
|
if ((type != PK_ALL) && (type != manufacturer_public_keys[i].type)) {
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
int dl = 0;
|
int dl = 0;
|
||||||
uint8_t key[manufacturer_public_keys[i].keylen];
|
uint8_t key[manufacturer_public_keys[i].keylen];
|
||||||
param_gethex_to_eol(manufacturer_public_keys[i].value, 0, key, manufacturer_public_keys[i].keylen, &dl);
|
param_gethex_to_eol(manufacturer_public_keys[i].value, 0, key, manufacturer_public_keys[i].keylen, &dl);
|
||||||
if (ecdsa_signature_r_s_verify(manufacturer_public_keys[i].grp_id, key, tmp_data, data_len, tmp_signature, signature_len, hash) == 0)
|
|
||||||
|
if (ecdsa_signature_r_s_verify(manufacturer_public_keys[i].grp_id, key, tmp_data, data_len, tmp_signature, signature_len, hash) == 0) {
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue