llj098 / seek-for-android

Automatically exported from code.google.com/p/seek-for-android
0 stars 0 forks source link

PKCS#15 - EF_AccessConditions DER parser problem. #82

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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

Attachments:

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

Attachments:

GoogleCodeExporter commented 9 years ago
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