Hi,

Thank you for detailed response.

Now I am using 'pcsc.jar'. But, unfortunately this does not work. Now the
exception is different, unrecognized APDU command.
With new PCSC card terminal I get following exception:
____________________________________________________________________________
__________

opencard.core.terminal.CardTerminalException: Did not recognize the APDU
command
        at
com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal.internalSendAPDU(Pcsc10C
ardTerminal.java:808)
        at
opencard.core.terminal.CardTerminal.sendAPDU(CardTerminal.java:494)
        at opencard.core.terminal.SlotChannel.sendAPDU(SlotChannel.java:115)
        at
opencard.core.service.CardChannel.sendCommandAPDU(CardChannel.java:222)
        at
com.slb.opencard.CyberflexAccess.CyberflexAccessSignatureCardService.execute
(CyberflexAccessSignatureCardService.java:301)
        at
com.slb.opencard.CyberflexAccess.CyberflexAccessSignatureCardService.signDat
a (CyberflexAccessSignatureCardService.java:134) 
____________________________________________________________________________
__________

In file Pcsc10CardTerminal.java the values of variables 'lenbuf' (85 d) and
'le' (128 d), makes the execution thread to skip all if/else cases, which
decide the caseAPDU, and take to last 'else' which executes this statement:
        throw new CardTerminalException("Did not recognize the APDU
command");

The test data I am trying to sign is "Hello!" string.

What could be the problem?

Thank you,
Smita

-----Original Message-----
From: Christophe Muller [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 21, 2000 1:08 PM
To: Smita Ayyadevara
Cc: [EMAIL PROTECTED]
Subject: New PC/SC CardTerminal (was Re: [OCF] Problem with
CyberflexAccessSignatureCardService)


Hello,

Smita Ayyadevara wrote:
> 
> Hello,
> I have installed Schlumberger's Cyberflex Access toolkit 3C with
> Reflex 72 smart card reader. I have stored a key pair on the smart
> card. Now if I try to use the private key to sign some data using
> CyberflexAccessSignatureCardService , I get the following exception.

> opencard.core.terminal.CardTerminalException: Pcsc10CardTerminal: PCSC
> Exception in method SCardTransmit: error occurred with SCardTransmit
> return code = 00000057

This error usually occurs whith the PC/SC wrapper CardTerminal
when a CardService tries to send T=0 case-4 long APDUs. It is due
to a mismatch between the OCF specs (the CardTerminal is in charge
of handling the chaining of APDUs automatically) and the fact
that this CardTerminal is not doing it, nor PC/SC itself.
One solution is to use a pure-java driver (CardTerminal) that
does the right thing, such as the GemplusCardTerminal for GemPC
readers. An other solution is to fix the PC/SC wrapper.

I will post a new version of the PC/SC CardTerminal beginning
of next year with a patch that solves this problem and several
other goodies that have been developed by R&D people here.
This new version will also be forwarded to IBM, the official
maintener of the PC/SC CardTerminal, for inclusion into
the next OCF version.

Please find attached a preview beta of this new PC/SC wrapper
CardTerminal. It is a ZIP file containing a README (list of new
features and how to install/use it), the sources directory, and
a compiled (and directly usable) JAR file.

Please do not hesitate to send me any problem report *or* any
patch that fix them (preferably ;-D). I will be back only on
January 2nd to read the results.. :-). Note that the included
source directory "pcsc10/" replaces the one that is called:


OCF1.2/components/pcsc-wrapper-src/src/com/ibm/opencard/terminal/pcsc10/

in your regular OCF1.2 distribution. You might need the file found in
.../terminal/pcsc/ in order to recompile..

Happy Holidays, Merry Xmas, and Happy New Year !

Cheers,
Christophe.

 = Utopia would be free speech, free software, AND free beer. --Davo. =
--
-------------------------------------------------------------
[EMAIL PROTECTED] - Gemplus Research Lab
Phone: +33 4-42-36-57-83 | Disclaimer: I don't speak for Gemplus
Gemplus doesn't speak for me... it is better that way!
-------------------------------------------------------------


---
> 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