Hi Group, I would like to do encryption and decryption of simple text using smart card and Crypto API functions. Can you give me sequence of functions to call for decryption? Thanks, hb.
First you would need to tell what is the purpose of it. (1) for a person to store / retrieve his/her own data? (2) to encrypt data for somebody else then the recipient to decrypt? In case of (1) you create a private / public asymmetric key pair (KEK) on your smart card and use it to encrypt / decrypt random symmetric data encryption keys (DEKs). In case (2) the recipient should have a private key and a certificate (with the corresponding public key) on the smart card. The sender will use the public key in the certificate (KEK) to encrypt the random symmetric key (DEK) which encrypts the data. (This also means the send er doesn't need the smart card - only the recipient needs it. On the other hand, now the recipient needs to obtain a certificate from some trusted CA = Certificate Authority.) So what is your goal? Also, is the smart card has its own CSP (Crypto Service Provider dll)? Laszlo Elteto SafeNet, Inc. "h.bond.2009@gmail.com" wrote: > Hi Group, > > I would like to do encryption and decryption of simple text using > smart card and Crypto API functions. > Can you give me sequence of functions to call for decryption? > > Thanks, > hb. >
Purpose it to decrypt the data on client machine which has smart card. so here is the steps that i want to do. - server encrypt the random data and send to client. - client detect the smart card, retrieve the certificate, and decrypt the encrypted random data and send the random text back to server. which functions i need to use in client program to decrypt the data?