mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
change iso15693 nxp originality check from PK_MFC to PK_15
This commit is contained in:
parent
e86e5fd293
commit
c3a7a11ae7
1 changed files with 4 additions and 4 deletions
|
@ -279,22 +279,22 @@ static int CmdHF15Help(const char *Cmd);
|
||||||
static int nxp_15693_print_signature(uint8_t *uid, uint8_t *signature) {
|
static int nxp_15693_print_signature(uint8_t *uid, uint8_t *signature) {
|
||||||
|
|
||||||
int reason = 0;
|
int reason = 0;
|
||||||
int index = originality_check_verify(uid, 8, signature, 32, PK_MFC);
|
int index = originality_check_verify(uid, 8, signature, 32, PK_15);
|
||||||
if (index >= 0) {
|
if (index >= 0) {
|
||||||
reason = 1;
|
reason = 1;
|
||||||
} else {
|
} else {
|
||||||
// try with sha256
|
// try with sha256
|
||||||
index = originality_check_verify_ex(uid, 8, signature, 32, PK_MFC, false, true);
|
index = originality_check_verify_ex(uid, 8, signature, 32, PK_15, false, true);
|
||||||
if (index >= 0) {
|
if (index >= 0) {
|
||||||
reason = 2;
|
reason = 2;
|
||||||
} else {
|
} else {
|
||||||
// try with reversed uid / signature
|
// try with reversed uid / signature
|
||||||
index = originality_check_verify_ex(uid, 8, signature, 32, PK_MFC, true, false);
|
index = originality_check_verify_ex(uid, 8, signature, 32, PK_15, true, false);
|
||||||
if (index >= 0) {
|
if (index >= 0) {
|
||||||
reason = 3;
|
reason = 3;
|
||||||
} else {
|
} else {
|
||||||
// try with sha256 and reversed uid / signature
|
// try with sha256 and reversed uid / signature
|
||||||
index = originality_check_verify_ex(uid, 8, signature, 32, PK_MFC, true, true);
|
index = originality_check_verify_ex(uid, 8, signature, 32, PK_15, true, true);
|
||||||
if (index >= 0) {
|
if (index >= 0) {
|
||||||
reason = 3;
|
reason = 3;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue