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
mifare_key_deriver_update_uidis 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 resulthttps://github.com/nfc-tools/libfreefare/blob/master/libfreefare/mifare_key_deriver.c#L148-L161