Skip to content
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

PKCS#15 - EF_AccessConditions DER parser problem. #82

Open
GoogleCodeExporter opened this issue Mar 26, 2015 · 4 comments
Open

PKCS#15 - EF_AccessConditions DER parser problem. #82

GoogleCodeExporter opened this issue Mar 26, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

A. What's the problem?
We tested the below raw data of EF_AccessConditions.
We got the error message and can't open logical channel success.

05-27 16:04:07.151  3047  3092 E PKCS15 - EF_ACConditions: Exception: [Parser] 
Unexpected type


B. What steps will reproduce the problem?
1. Use the specific SIM.
2. After loading the EF_AccessCondition, got the error message
3. Can't open logical channel success for this specific AID.

C. What is the expected output? What do you see instead?
SHA1 => Not exist, should be access allowed for all apps.
APDU filter=> APDU: 94 00 00 00, Mask: FF 00 00 00

D. What version of the product are you using? On what operating system?
Android 4.4.2 with SEEK 3.1.0

E. Please provide any additional information below.

EF_AccessConditions RAW data:
30 10 a0 0e a0 0c a1 0a 04 08 94 00 00 00 ff 00 00 00

The parser result:
SEQUENCE(1 elem)
[0](1 elem)
[0](1 elem)
[1](1 elem)
OCTET STRING(8 byte) 94000000FF000000

Original issue reported on code.google.com by hsu.chih...@gmail.com on 28 May 2014 at 6:51

@GoogleCodeExporter
Copy link
Author

Hi,

I have fixed the issue, please follow the attachment for reference, thanks. :)

Original comment by hsu.chih...@gmail.com on 3 Jun 2014 at 2:27

  • Added labels: ****
  • Removed labels: ****

Attachments:

@GoogleCodeExporter
Copy link
Author

Hi, 
I have download smartcard-api-3_1_0.tgz and patched it. 
And then I try to patch your DERParser.patch. Find the below error. How do I 
patch this successfully?

patch: **** malformed patch at line 44: diff --git 
a/src/org/simalliance/openmobileapi/service/security/arf/PKCS15/EF.java 
b/src/org/simalliance/openmobileapi/service/security/arf/PKCS15/EF.java

Original comment by sealily...@gmail.com on 10 Jun 2014 at 4:28

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Hi, 

Sorry for the inconvenience.
About the patch of EF.java, it just for debug only.
Please try to use "DERPaser_0610.patch" to apply again.
This modification only remove the EF.java part, thanks.

Original comment by hsu.chih...@gmail.com on 10 Jun 2014 at 4:35

  • Added labels: ****
  • Removed labels: ****

Attachments:

@GoogleCodeExporter
Copy link
Author

Hi All,

This issue is fixed at seek 3.2.1, please refer seek 3.2.1 solution, thanks. :)

Original comment by hsu.chih...@gmail.com on 17 Jul 2014 at 3:59

  • Added labels: ****
  • Removed labels: ****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant