Re: Destroying private/public keys by Igor
Igor
Wed Apr 28 08:57:55 CDT 2004
Well, I haven't looked at the source code and I can't be positively
sure, but I would be greatly surprised if MS provider does not zero out
keys when deleted.
--
With best wishes,
Igor Tandetnik
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken
"Ririko Horvath" <horvathr@securemethods.com> wrote in message
news:OrkIiISLEHA.3712@TK2MSFTNGP11.phx.gbl
> Does this mean that if I am using Microsoft's "MS_ENHANCED_PROV" as
> the cryptographic provider, Microsoft ensures that the key material is
> completely erased when the key handle is destroyed.
>
> Thanks You!
>
> "Igor Tandetnik" <itandetnik@mvps.org> wrote in message
> news:ONd17kILEHA.2736@TK2MSFTNGP11.phx.gbl...
>> That's the responsibility of cryptographic provider. A well written
>> provider ensures that the key material is completely erased. You
>> have no choice but to trust the provider in this. The API
>> intentionally does not give you direct access to memory where keys
>> are stored, so you cannot erase it yourself.
>> --
>> With best wishes,
>> Igor Tandetnik
>>
>> "For every complex problem, there is a solution that is simple, neat,
>> and wrong." H.L. Mencken
>>
>> "Ririko Horvath" <horvathr@securemethods.com> wrote in message
>> news:%23qOncFFLEHA.2396@TK2MSFTNGP12.phx.gbl
>>> Thanks for replying. What do you mean by associated key pairs are
>>> destroyed when the key handle is destroyed?. I want to make sure
>>> that there are no traces of keys in the memory or on disk that
>>> someone can maliciously access.
>>>
>>> Thanks.
>>> "gangadhar npk" <gangadhar_npk_@nospam.plz> wrote in message
>>> news:#iefrUDLEHA.1312@TK2MSFTNGP12.phx.gbl...
>>>> hi,
>>>> Can you explain more about what do you mean by destroy the
>>>> key-pair. When you create a pub/pvt pair, all you get is the handle
>>>> to the pair. And when you destroy the handle, the key pair will get
>>>> destroyed. A little more explaination can help.
>>>> regards
>>>> gangadhar
>>>> Ririko Horvath wrote:
>>>>> Hello,
>>>>>
>>>>> If a public/private key pair is obtained from CryptGetUserKey, the
>>>>> 'CryptDestroyKey' function only destroys the handle but the
>>>>> underlying key pair is not destroyed by this function. In my
>>>>> application, I'm required to destroy the underlying key pair for
>>>>> the security reasons. Does any one know how to do this.
>>>>>
>>>>> Thank You!