Finalize this cryptoki object and native cryptoki

Namespace:  Cryptware.NCryptoki
Assembly:  NCryptoki (in NCryptoki.dll)

Syntax

Visual Basic (Declaration)
Public Function Finalize ( _
	reserved As IntPtr _
) As Integer
C#
public int Finalize(
	IntPtr reserved
)
Visual C++
public:
virtual int Finalize(
	IntPtr reserved
) sealed
JavaScript
function finalize(reserved);

Parameters

reserved
Type: System..::..IntPtr
Reserved paramters

Return Value

0 if no error occur or a PKCS#11 error otherwise CryptokiException

Implements

ICryptoki..::..Finalize(IntPtr)

Remarks

Finalize is called to indicate that an application is finished with the Cryptoki library. It should be the last Cryptoki call made by an application. The reserved parameter is reserved for future versions; for this version, it should be set to IntPtr.Zero (if Finalize is called with a non-Zero value for reserved, it should return the value CKR_ARGUMENTS_BAD). If several applications are using Cryptoki, each one should call Finalize. Each application’s call to Finalize should be preceded by a single call to Initialize; in between the two calls, an application can make calls to other Cryptoki functions. See Section 6.6 of PKCS#11 v.20 specifications for more details.

See Also