Page 1 of 1

Apdu may be illegel

Posted: Wed Nov 16, 2016 1:50 pm
by hinata
I play around with some Ecdsa codes when I got this error in debugshell command..

Code: Select all

>> /send 00D3020030350218345FBACE367196E4FEF900CA6CFB7B410621BABA1B28AF660219009DC2B6ECCB7CDE2855E88F6FD8D0B2349588AB503087C45E
>> 00 D3 02 00 30 35 02 18 34 5F BA CE 36 71 96 E4 FE F9 00 CA 6C FB 7B 41 06 21 BA BA 1B 28 AF 66 02 19 00 9D C2 B6 EC CB 7C DE 28 55 E8 8F 6F D8 D0 B2 34 95 88 AB 50 30 87 C4 5E
<< 90 00

Apdu may be illegel.Decoding conventions for command APDU should obey the rule in  7816-3  section 12.1.3


What does it mean, Apdu may be illegel.Decoding conventions for command APDU should obey the rule in 7816-3 section 12.1.3...?

But the code is still works, right? :')

Thank you in advance.

Re: Apdu may be illegel

Posted: Wed Nov 16, 2016 9:56 pm
by wumindejia
00D3020030350218345FBACE367196E4FEF900CA6CFB7B410621BABA1B28AF660219009DC2B6ECCB7CDE2855E88F6FD8D0B2349588AB503087C45E
00D30200 30 :length of the data field is 48,but "350218345FBACE367196E4FEF900CA6CFB7B410621BABA1B28AF660219009DC2B6ECCB7CDE2855E88F6FD8D0B2349588AB503087C45E" the length is 54.

Re: Apdu may be illegel

Posted: Wed Nov 16, 2016 10:02 pm
by UNKNwYSHSA
I usually use pyApdutool. Input data field, the LC is automatically calculated.

Re: Apdu may be illegel

Posted: Wed Nov 16, 2016 10:04 pm
by hinata
oh. thank you @wumindejia and @UNKNwYSHSA

Re: Apdu may be illegel

Posted: Wed Nov 16, 2016 10:13 pm
by UNKNwYSHSA
:D