Hi all!
Using the SignatureCardService I'm doing the following in a method:
SmartCard.start();
.
. (some parts skipped)
.
byte[] signature1 = scs.signData(privKeyRef,"SHA1withRSA",
"ZEROPADDING",data);
result = scs.verifySignedData(pubKeyRef, "SHA1withRSA",
"ZEROPADDING", data, signature1);
.
. (some parts skipped)
.
SmartCard.shutdown();
All this works fine when the method (containing the code above) is
called from my test application. But the method is called twice from my
application and the _second_ time OCF crashes with the following error
message:
B����opencard.core.terminal.CardTerminalException:
opencard.opt.terminal.protocol.T1IOException:
GemplusBlockProtocol.internalTransmit:
GemplusBlockProtocol.exchangeData: timeout reached...
.
(truncated)
If I remove the call to "SmartCard.shutdown()" I have no problem the
second time the method is called, but that's not a very nice solution.
Anyone who knows the cause of my problems and how to solve it more
elegant way?
thanks in advance
/Martin Sigbj�rn
Visit the OpenCard Framework's WWW site at http://www.opencard.org/ for
access to documentation, code, presentations, and OCF announcements.
-----------------------------------------------------------------------------
To unsubscribe from the OCF Mailing list, send a mail to
"[EMAIL PROTECTED]" with the word "unsubscribe" in the BODY of the
message.