Re: "Error Parm"


[ Follow Ups ] [ BasicCard User Forum ]

Posted by zeitcontrol (84.135.2.42) on May 23, 2005 at 05:59:59:

In Reply to: "Error Parm" posted by antionetteg on May 20, 2005 at 09:10:33:

Hello,

this example is not prepared for Professional BasicCard. But this problem can be solved quite simple. Please change within file ZC_Include.cpp (in both Debit and Issuer program) the function
CZCBasicCard::ConnectCard().
Change from
---
//first start ZCBCI_SG_LFSR_CRC
Ret = ZCBciStartEncryption(Card, &sw1sw2, ZCBCI_SG_LFSR_CRC, 0, rand());
//if failed try DES
if (sw1sw2 == swUnknownAlgorithm)
Ret = ZCBciStartEncryption(Card, &sw1sw2, 0x21, 0, rand());
---
to
---
//first start ZCBCI_SG_LFSR_CRC
Ret = ZCBciStartEncryption(Card, &sw1sw2, ZCBCI_SG_LFSR_CRC, 0, rand());
//if failed try DES
if (sw1sw2 == swUnknownAlgorithm)
Ret = ZCBciStartEncryption(Card, &sw1sw2, 0x21, 0, rand());
//if failed try DES with CRC
if (sw1sw2 == swUnknownAlgorithm)
Ret = ZCBciStartEncryption(Card, &sw1sw2, 0x23, 0, rand());
---


Follow Ups:


[ Follow Ups ] [ BasicCard User Forum ]