[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ms-cryptoapi
Subject:    Re: Parameters for PIN
From:       Laszlo Elteto <lelteto () RAINBOW ! COM>
Date:       2002-10-15 15:21:47
[Download RAW message or body]

Actually, Microsoft's document (although not complete) IS the one you have
to use to develop your CSP. A few months ago people from MS promised they
extend the CSP documentation and overwhelmingly we all asked them to include
currently not documented flags, parameters, etc. Hopefully they are
listening and all these will be documented. (But don't ask me when...) The
current documentation is "good enough" to develop a smart card (or any other
CSP). You are always welcome to come to this list and ask specific questions
about parameters etc. Somebody (many times Microsoft developers) will
usually answer your questions.
If you want to see what parameters real-world applications are using create
a "log" layer CSP between CAPI and the MS CSP (ie. you set your CSP as
default but it does nothing more just records in/out parameters and results
of calls and immediately calls down to the MS CSP). I learned a lot this
way. Sorry, don't ask for this logging CSP, it's company proprietary and I
can't give out neither in source nor in executable form :(

Laszlo Elteto
Fellow Scientist
Rainbow Technologies, Inc.

-----Original Message-----
From: SUBSCRIBE CryptoAPI Fernando B. M.
[mailto:fbarranquero@SERMEPA.ES]
Sent: Tuesday, October 15, 2002 12:27 AM
To: CryptoAPI@DISCUSS.MICROSOFT.COM
Subject: Re: Parameters for PIN


Thank's for the info Laszlo,

Just one more thing. Do you know where in the Internet may I find
information about development of Smart Card Based CSP's?. Microsoft pages
have just no information that might help to develope this kind of CSP's
(neither parámetres, nor procedures documented).

Thank's again.

Fer



 

                    Laszlo Elteto

                    <lelteto@RAINBOW.COM>          Para:
CryptoAPI@DISCUSS.MICROSOFT.COM                                   
                    Enviado por: Microsoft         cc:

                    Cryptographic API              Asunto:      Re:
Parameters for PIN                                       
                    <CryptoAPI@DISCUSS.MICR

                    OSOFT.COM>

 

 

                    14/10/2002 17:11

                    Por favor, responda a

                    Microsoft Cryptographic

                    API

 

 





The PP_..._PINs are used only with SetProvParam (as you noted, to send a
token-wide PIN) and the KP_..._PINs are used with SetKeyParam to send PINs
to specific keys. (The latter is used by some smart cards with eg.
signature
private keys.)

Laszlo Elteto
Fellow Scientist
Rainbow Technologies, Inc.

-----Original Message-----
From: SUBSCRIBE CryptoAPI Fernando B. M.
[mailto:fbarranquero@SERMEPA.ES]
Sent: Monday, October 14, 2002 1:10 AM
To: CryptoAPI@DISCUSS.MICROSOFT.COM
Subject: Re: Parameters for PIN


Hi,

I've seen that in wincrypt.h are defined the following constants:

#define KP_ADMIN_PIN                     31
#define KP_KEYEXCHANGE_PIN         32
#define KP_SIGNATURE_PIN           33

and also:

#define PP_ADMIN_PIN                     31
#define PP_KEYEXCHANGE_PIN         32
#define PP_SIGNATURE_PIN           33

No comments come with the definitions.

PP_... parameters are used in function CpSetProvParam for sending the PIN
to the smart card but in wincrypt.h they are defined as CpGetProvParam
parameters. How are these parameters used with this function?. As far as I
now, the PIN is a private data that shouldn't be possible to be read from
the card.

On the other hand, what are the KP_... parameters for?, Which CryptoSPI
functions may use them?.

Thank's

Fer



----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:CryptoAPI-signoff-request@DISCUSS.MICROSOFT.COM

----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:CryptoAPI-signoff-request@DISCUSS.MICROSOFT.COM
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic