Hi,

Try to use 0x31 0x32 0x33 0x34 for 1234...

Or try to use Lc=8 and pad the data with 0xFF.
At least for GSM that is how it should be....

Best regards,

Alex

-----Original Message-----
From: Germano Paciocco [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 06, 2003 1:10 PM
To: [EMAIL PROTECTED]
Cc: Willem Lobbezoo
Subject: Re: [OCF] Create a file

Willem Lobbezoo ha scritto:

> What errors do you get ?

An example: if I try the subsequent VERIFY command
CLA  INS  P1   P2   Lc   >DATA
0x00 0x20 0x00 0x01 0x04 0x01 0x02 0x03 0x04

the card answer "6700": on the ISO this corresponds to "Wrong length".
Now, the PIN of my card is 1234, and I'm not sure I have to encode it in 
this way, but I don't understand this error in any way! What has "wrong 
length"? The Data Field? the entire APDU? How hava I to encode the PIN?
Other errors on next issues... ;)





---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/

! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
!                           [EMAIL PROTECTED]
! containing the word
!                           unsubscribe 
! in the body.


---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/

! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
!                           [EMAIL PROTECTED]
! containing the word
!                           unsubscribe 
! in the body.

Reply via email to