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