|
|
|
date: Tue, 10 Jun 2008 05:33:34 -0700 (PDT),
group: microsoft.public.platformsdk.security
back
Re: Caching PIN
Hi Marek,
The usual approach taken by smart card CSP's implementors is to cache the
PIN in the context of the CSP dll, thus you don't need to care about the
process ID or what ever because each process will load its own copy of the
CSP dll. Personally, in the CSP's I have developed in the past where the PIN
is cached, I had a list of available readers on the system and the PIN is
cached for each reader.
From what you write, I understand that you will have some sort of global
repository on the system for cached PIN (like a service) and that you need
the process ID to identify which PIN belongs to which process. In my opinion,
this is not a good approach and it is useless. I advice you to consider the
way I explained in the begining of this message, thus you will not have to
care about the process ID.
Cheers,
--
Mounir IDRASSI
IDRIX
http://www.idrix.fr
to reach : mounir_idrix_fr (replace the underscores with the at and dot
characters respectively)
"m.pawlak@wasko.pl" wrote:
> Hi Mounir,
>
> > For your last question, it appears to me that it's very specific to your
> > implementation.
>
> Microsoft's CSP Cookbook (http://msdn.microsoft.com/en-us/library/
> ms953432.aspx) says: "The PIN should be stored internally within the
> CSP per process." So it appears to me that at some point every CSP
> needs to address this problem and identify the process. I am just
> wondering if using the id obtained for GetCurrentProcessId() is a good
> approach.
>
> Cheers,
> Marek
>
>
date: Wed, 11 Jun 2008 01:53:01 -0700
author: Mounir IDRASSI am
Re: Caching PIN
Hi,
Is it possible to know the smart card module associated with a card
identified by an ATR string?
I know how a CSP name associated with a card be identified.But after getting
the CSP ,is it possible to just verify the PIN alone ?If yes,could you please
outline how can I do that?
Thanks in advance
--
-Novice
"To unlearn is to learn"
"Mounir IDRASSI" wrote:
> Hi Marek,
>
> The usual approach taken by smart card CSP's implementors is to cache the
> PIN in the context of the CSP dll, thus you don't need to care about the
> process ID or what ever because each process will load its own copy of the
> CSP dll. Personally, in the CSP's I have developed in the past where the PIN
> is cached, I had a list of available readers on the system and the PIN is
> cached for each reader.
> From what you write, I understand that you will have some sort of global
> repository on the system for cached PIN (like a service) and that you need
> the process ID to identify which PIN belongs to which process. In my opinion,
> this is not a good approach and it is useless. I advice you to consider the
> way I explained in the begining of this message, thus you will not have to
> care about the process ID.
>
> Cheers,
> --
> Mounir IDRASSI
> IDRIX
> http://www.idrix.fr
>
> to reach : mounir_idrix_fr (replace the underscores with the at and dot
> characters respectively)
>
>
> "m.pawlak@wasko.pl" wrote:
>
> > Hi Mounir,
> >
> > > For your last question, it appears to me that it's very specific to your
> > > implementation.
> >
> > Microsoft's CSP Cookbook (http://msdn.microsoft.com/en-us/library/
> > ms953432.aspx) says: "The PIN should be stored internally within the
> > CSP per process." So it appears to me that at some point every CSP
> > needs to address this problem and identify the process. I am just
> > wondering if using the id obtained for GetCurrentProcessId() is a good
> > approach.
> >
> > Cheers,
> > Marek
> >
> >
date: Tue, 26 Aug 2008 12:46:02 -0700
author: Novice
|
|