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: Thu, 5 Jun 2008 04:10:36 -0700 (PDT),    group: microsoft.public.platformsdk.security        back       


CryptDecryptMessage with CSP pin   
hi..

I am trying to encrypt and decrypt data using a certificate in my user
store. I encrypt the data using CryptEncryptMessage and subsequently
calling CryptDecryptMessage causes the CSP authentication window to
come up asking for a pin. Is there a way i can bypass this
authentication by say.. hardcoding the csp password or by making some
extra Crypto calls??

Thanks in advance...
date: Thu, 5 Jun 2008 04:10:36 -0700 (PDT)   author:   Janma

RE: CryptDecryptMessage with CSP pin   
Hi,

To my knowledge, there is no way to set the PIN manually using the 
simplified message functions. However, if you are using a smart card CSP and 
want to get rid of the PIN dialog, you should use the low level CryptoAPI 
functions to have a HCRYPTPROV handle to your CSP and then use the function 
CryptSetProvParam to set the PIN manually using the PP_KEYEXCHANGE_PIN 
attribute before calling the CryptDecrypt function.


Cheers,
-- 
Mounir IDRASSI
IDRIX
http://www.idrix.fr

to reach : mounir_idrix_fr (replace the underscores with the at and dot 
characters respectively)


"Janma" wrote:

> hi..
> 
> I am trying to encrypt and decrypt data using a certificate in my user
> store. I encrypt the data using CryptEncryptMessage and subsequently
> calling CryptDecryptMessage causes the CSP authentication window to
> come up asking for a pin. Is there a way i can bypass this
> authentication by say.. hardcoding the csp password or by making some
> extra Crypto calls??
> 
> Thanks in advance...
>
date: Thu, 5 Jun 2008 07:15:00 -0700   author:   Mounir IDRASSI am

Re: CryptDecryptMessage with CSP pin   
Hi,

I need the same funcionality, but couldn't find any usefull
information on it so far. The only thing I got is mention of
PP_KEYEXCHANGE_PIN in the smart card cryptographic cookbook, e.g.:

"There are two ways for the CSP to receive a PIN; CryptSetProvParam
PP_KEYEXCHANGE_PIN and PIN request UI."

However - I couldn't even find the definition of the
PP_KEYEXCHANGE_PIN , not to mention example source code. Can you
please share a pointer to some usefull info ? Thanks :)

Cheers,

ÂŽeljko

On 5 Jun, 16:15, Mounir IDRASSI <mooni...@newsgroups.nospam> wrote:
> Hi,
>
> To my knowledge, there is no way to set thePINmanually using the
> simplified message functions. However, if you are using a smart card CSP and
> want to get rid of thePINdialog, you should use the low level CryptoAPI
> functions to have a HCRYPTPROV handle to your CSP and then use the function
> CryptSetProvParam to set thePINmanually using the PP_KEYEXCHANGE_PIN
> attribute before calling the CryptDecrypt function.
>
> Cheers,
> --
> Mounir IDRASSI
> IDRIXhttp://www.idrix.fr
>
> to reach : mounir_idrix_fr (replace the underscores with the at and dot
> characters respectively)
>
>
>
> "Janma" wrote:
> > hi..
>
> > I am trying to encrypt and decrypt data using a certificate in my user
> > store. I encrypt the data using CryptEncryptMessage and subsequently
> > calling CryptDecryptMessage causes the CSP authentication window to
> > come up asking for apin. Is there a way i can bypass this
> > authentication by say.. hardcoding the csp password or by making some
> > extra Crypto calls??
>
> > Thanks in advance...- Hide quoted text -
>
> - Show quoted text -
date: Fri, 13 Jun 2008 02:23:45 -0700 (PDT)   author:   unknown

Google
 
Web ureader.com


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