-
Notifications
You must be signed in to change notification settings - Fork 713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
find known application identifiers in opensc-explorer #78
Conversation
There are few question and suggestions:
|
Yes, it is wanted behavior. An application is a DF in the MF. So I think it's OK to list them with
sc_hex_to_bin also allows spaces between the characters and so do arg_to_path or do_cd respectively. I haven't tried, but looking at the code, I think Copy & Paste could actually work. I check that later.
EF.Dir is not mandatory and it does not necessarily list all applications. In known_applications are listed all aids that I have seen before. They are selected to check if the application is present for the card
Sorry, I don't understand the question.
Hmm, the trailing spaces have been present before. Sure, I can remove them. Do you mean tabs instead of spaces in the beginning of a line? OK, can fix that. Did I miss something else regarding the style? As general remark: Please provide a configuration for a code beautifier to avoid these problems. A commit hook could be very useful, for example. |
Applications list in opensc-explorer is a great idea, but still, I don't think it has to be printed on any 'find' command -- when looking for FIDs from 0020 to 002F, imho, it's not logic to see the applications list.
If no EF.DIR, it should be present in EF.ATR or in ATR . Anyway, there should be more clever method to get know the on-card application than 'know-by-someone' application lists. For the non-standard card create a card specific tool, as like as many other cards do.
The applications that are not referenced in EF.DIR, EF.ATR or ATR are highly card-specific data. It should not be present in a common tool like opensc-explorer.
For a while, there is no coding style common for entire project. It'll be.
Right now I don't know how to do it. |
|
Changed commit to use tabs instead of spaces. Also, applications and files with FID are better separated now. |
Changed commit to use aid format of cd. As imporvement, the existing commands could be more resilient, by, for example allowing whitespaces in hex data. |
To resume:
|
uses brute-force selecting of known application identifiers in MF and looks into EF.DIR
soory for the noise. seems like i pushed something completely wrong to the branch. Now it should work (it actually is tested).
|
Common tools are for the cards that use the common mechanisms, and in particular, the common mechanism to detect the the on-card application.
OpenSC [3F00]> find 2F00 2F10 FileID Type Size
|
Can one of the admins verify this patch? |
Sorry, this pull request was closed when the unused 'staging' branch of OpenSC github project was deleted. If this pull request is still actual for you, |
opensc-explorer
: look for known application identifiers withfind