RE: CryptSetProvParam and PP_CLIENT_HWND
From: lelteto (lelteto_at_discussions.microsoft.com)
Date: 06/29/05
- Previous message: wrobbins99_at_yahoo.com: "Please, does NPLogonNotify ever receive auth type Kerberos:Interactive?"
- In reply to: Ajith Kumar: "CryptSetProvParam and PP_CLIENT_HWND"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 29 Jun 2005 09:04:02 -0700
Before calling CryptGenKey you can prompt for the password yourself and send
it to the CSP via CryptSetProvParam with PP_KEYEXCHANGE_PIN or
PP_SIGNATURE_PIN (depending on what type of keypair you are generating).
Note that this behavior is CSP dependent so in some CSPs may not support it.
Laszlo Elteto
SafeNet, Inc.
"Ajith Kumar" wrote:
>
> When we use the flag CRYPT_USER_PROTECTED while calling CryptGenKey(..)
> function. A dialog box will come to enter password etc.
>
> While looking at CryptSetProvParam with "PP_CLIENT_HWND", MSDN says "If
> dwParam is PP_CLIENT_HWND, pbData buffer contains a DWORD value specifying
> the window handle that the provider uses when interacting directly with the
> user".
>
> Can I use a custom window for accepting password, if it is possible, can any
> one help me ?
>
> Thanks in advance.
>
> Regards,
> Ajith Kumar.
- Previous message: wrobbins99_at_yahoo.com: "Please, does NPLogonNotify ever receive auth type Kerberos:Interactive?"
- In reply to: Ajith Kumar: "CryptSetProvParam and PP_CLIENT_HWND"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]