Re: Re: problems with openct/ctapi


[ Follow Ups ] [ BasicCard User Forum ]

Posted by daniele (212.227.35.114) on December 05, 2005 at 08:27:29:

In Reply to: Re: problems with openct/ctapi posted by christian on December 04, 2005 at 08:47:18:

Yes, I'm using the WTX command.

I have another example that does not work (in most cases):

const BWI=9
#Include T1ATR.BAS

Command &H80 &H31 Decrypt( data$ )
Private Buf As String = ""
WTX 10
Buf = Mid$( data$, 5 )
Call RsaPKCS1Decrypt( data$, p$, q$, e$ )
data$ = Buf
End Command

p$, q$, e$ are taken from the Eeprom. They have been generated with RsaGenerateKey.

BTW, I'm using the ZC4.5D Rev C.

Regards,
Daniel



Follow Ups:


[ Follow Ups ] [ BasicCard User Forum ]