-
Notifications
You must be signed in to change notification settings - Fork 712
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
Support emulated OpenPGP applet in Android HCE #391
Comments
@frankmorgner According to 4.1.2.1 Application Identifier (AID) of http:https://g10code.com/docs/openpgp-card-2.0.pdf, OpenPGP version can be determined via AID. But the card-openpgp.c follows the common routine of other OpenSC card drivers to recognize based on ATR. I don't know if there is way to change to AID. |
Some cards, will try and read the default AID, rather then using the ATR. card-piv.c is one of these. You mentioned Yubico. The Neo can have both an OpenPGP and PIV application, and it not clear |
@hongquan thanks for the link, I'll look into it. @dengert in theory you are right that this is a deeper problem of OpenSC (and I guess all smart card software that was started many years ago). However, I'm talking about |
First of all the OpenSC is for PKCS#15 cards. |
Thank @dengert Ok, I will research and change this function https://github.com/OpenSC/OpenSC/blob/master/src/libopensc/card-openpgp.c#L286 to have AID recognition support. |
@hongquan any updates on this? |
@frankmorgner Sorry, no update yet. |
fixes OpenSC#391 closes OpenSC#507
ooops, closed a bit too fast |
Also see comments in #551, abount the ATR not being added. |
fixes OpenSC#391 closes OpenSC#507
I created a simple Host Card Emulation (HCE) App for Android which integrates the OpenPGP applet of @Yubico.
Unfortunately I can't use the applet out of the box since the
card-openpgp.c
recognizes a card by its ATR rather than the AID. I am not familiar how to determine the OpenPGP version (1 or 2) so I can't really fix this at the moment. @hongquan do you know how this can be done in a more flexible way?The text was updated successfully, but these errors were encountered: