CRYPT_NEWKEYSET ,CRYPT_DELETEKEYSET and CryptReleaseContext

From: yangy (leonardyan_at_gmail.com)
Date: 01/17/05


Date: 16 Jan 2005 18:35:45 -0800

Hi

I hope someone can help clear something up for me. I created a new Key
Container at the start of my application using CryptAcquireContext
(with CRYPT_NEWKEYSET flag).

My question relates to proper cleanup. Do I call CryptReleaseContext
first then call CrptAcquireContext to delete the key container I
created at the start. Or does it matter?

Thanks



Relevant Pages

  • Re: Dict sharing vs. duplication
    ...     defining the flag in the Tcl_Obj structure ...  Although adding a flag to Tcl_Obj ... container with a mutable variant, ... The idea being that mutability is a more readable test, ...
    (comp.lang.tcl)
  • Re: Dict sharing vs. duplication
    ... no backrefs, no doubly-chained whatever, no scanning, no ... Although adding a flag to Tcl_Obj ... would (one of the main reasons I preferred my refs idea over yours). ... container with a mutable variant, ...
    (comp.lang.tcl)
  • Re: Does CryptAcquireContext work with Roaming user profiles?
    ... CryptAcquireContext does work with Roaming Profiles. ... The CryptAcquireContext call below assumes that a container already ... Did you try with the CRYPT_NEWKEYSET flag? ...
    (microsoft.public.platformsdk.security)
  • Re: [ckrm-tech] [RFC][PATCH 5/7] UBC: kernel memory accounting (core)
    ... I'm still thinking that inodes should belong to one container (or may be ... have it configurable based on some flag). ...
    (Linux-Kernel)
  • Basic questions about CryptAcquireContext and thread safety
    ... As each server thread starts, CryptAcquireContext() is invoked with a NULL container name and the CRYPT_VERIFYCONTEXT bit in order to create a HCRYPTPROV for the thread. ... Is it safe to call CryptAcquireContext/CryptReleaseContext within the scope of a function, without disturbing or overwriting cryptographic information associated with other HCRYPTPROV handles in that thread? ...
    (microsoft.public.platformsdk.security)

Quantcast