The handle that describes the module to perform
this operation.
AccessCred (input/optional)
If the target key referenced by KeyPtr is
protected and Delete has the value CSSM_TRUE, this
parameter must contain the certificates and samples required to
access the target key. The certificates must be presented as immediate
values in the input structure. The samples can be immediate values,
be obtained through a protected mechanism, or be obtained through
a callback function.
KeyPtr (input)
The key whose associated keying material can be
discarded at this time.
Delete (input)
If this value is CSSM_TRUE, the key data in the
key structure will be removed and any internal storage related to
that key will also be removed. In this case the key no longer exists
in any form, unless previously wrapped out of the CSP by the application.
If this value is CSSM_FALSE, then only the resources related to
the key structure are released. The key may still be accessible
by other means internally to the CSP.
DESCRIPTIONThis function requests the Cryptographic Service Provider
to clean up any key material associated with the key, and to possibly
delete the key from the CSP completely. This function also releases
the internal storage referenced by the KeyData field of the key
structure, which can hold the actual key value. The key reference by KeyPtr can
be a persistent key or a transient key. This function clears the
cached copy of the key and can have an effect on the long term persistence
or transience of the key. RETURN VALUEA CSSM_RETURN value indicating success or specifying a particular
error condition. The value CSSM_OK indicates success. All other
values represent an error condition. ERRORSErrors are described in the CDSA Technical Standard.