libfreefare icon indicating copy to clipboard operation
libfreefare copied to clipboard

DESFire key diversification - problem with random UID

Open ledvinap opened this issue 1 year ago • 0 comments

mifare_key_deriver_update_uid is trying to get actual UID when key diversification is enabled (mifare_desfire_get_card_uid_raw), but it does not update UID length. Only 4 bytes of UID are stored in diversification input as a result https://github.com/nfc-tools/libfreefare/blob/master/libfreefare/mifare_key_deriver.c#L148-L161

ledvinap avatar Jun 19 '23 14:06 ledvinap