Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Wed, 21 May 2008 06:48:28 -0700 (PDT),    group: microsoft.public.platformsdk.security        back       


Encrypt and decrypt using smart card   
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.
date: Wed, 21 May 2008 06:48:28 -0700 (PDT)   author:   unknown

RE: Encrypt and decrypt using smart card   
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.
>
date: Wed, 21 May 2008 09:14:11 -0700   author:   lelteto

Re: Encrypt and decrypt using smart card   
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?
date: Wed, 21 May 2008 12:30:27 -0700 (PDT)   author:   unknown

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us