From 0e819f75a44abbf87146fc63a9f43ec5feae36cb Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Fri, 13 Dec 2024 10:22:17 +0100 Subject: [PATCH] UL AES alt pk --- client/src/cmdhfmfu.c | 4 +++- tools/recover_pk.py | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/client/src/cmdhfmfu.c b/client/src/cmdhfmfu.c index 8e0259e2f6..0b3554a621 100644 --- a/client/src/cmdhfmfu.c +++ b/client/src/cmdhfmfu.c @@ -1416,9 +1416,11 @@ static int ulev1_print_signature(uint64_t tagtype, uint8_t *uid, uint8_t *signat {"TruST25 (ST) key 04?", "04101E188A8B4CDDBC62D5BC3E0E6850F0C2730E744B79765A0E079907FBDB01BC"}, }; - // https://www.nxp.com/docs/en/application-note/AN13452.pdf const ecdsa_publickey_t nxp_mfu_192_public_keys[] = { + // https://www.nxp.com/docs/en/application-note/AN13452.pdf {"NXP Ultralight AES", "0453BF8C49B7BD9FE3207A91513B9C1D238ECAB07186B772104AB535F7D3AE63CF7C7F3DD0D169DA3E99E43C6399621A86"}, + // TagInfo + {"NXP Ultralight AES (alt key)", "04DC34DAA903F2726A6225B11C692AF6AB4396575CA12810CBBCE3F781A097B3833B50AB364A70D9C2B641A728A599AE74"}, }; /* diff --git a/tools/recover_pk.py b/tools/recover_pk.py index a1dffc9eb0..3752ec4ffe 100755 --- a/tools/recover_pk.py +++ b/tools/recover_pk.py @@ -172,7 +172,11 @@ def selftests(): 'samples': ["045E4CC2451390", "C9BBDA1B99EB6634CDFD8E3251AC5C4742EA5FA507B8A8A8B39B19AB7340D173331589C54C56C49F0CCA6DDBAC1E492A", "043F88C2451390", "5C2055A7373F119C3FDD9843020B06AA0E6DE18C16496C425C4AD971A50F05FA1A67B9E39CA60C355EEEEBF8214A84A5"], 'pk': "0453BF8C49B7BD9FE3207A91513B9C1D238ECAB07186B772104AB535F7D3AE63CF7C7F3DD0D169DA3E99E43C6399621A86"}, - + {'name': "MIFARE Ultralight AES (alt key)", + # uses prime192v1, None, + # TODO more samples + 'samples': ["04A31232241C90", "057595DCC601CA7E21341F1F978FA134F0204D87A33749C56DDB4ABD6F1F26194341DB10093B34C42F524A30DCC5CE54"], + 'pk': "04DC34DAA903F2726A6225B11C692AF6AB4396575CA12810CBBCE3F781A097B3833B50AB364A70D9C2B641A728A599AE74"}, {'name': "MIFARE Classic / QL88", 'samples': ["30933C61", "AEA4DD0B800FAC63D4DE08EE91F4650ED825FD6B4D7DEEE98DBC9BAE10BE003E", "20593261", "F762CDD59EEDC075F4DDBA7ECD529FEEE5135C65A84D12EF0A250A321B2012F5"],