Inizialize this cryptoki object and native cryptoki

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

Syntax

Visual Basic (Declaration)
Public Function Initialize ( _
	multithreading As Boolean _
) As Integer
C#
public int Initialize(
	bool multithreading
)
Visual C++
public:
int Initialize(
	bool multithreading
)
JavaScript
function initialize(multithreading);

Parameters

multithreading
Type: System..::..Boolean
Specifies whether the caller will call NCryptoki functions in more threads or not, as specified in PKCS#11 v.2.20 specifications.

Return Value

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

Remarks

Initialize initializes the Cryptoki library. Initialize should be the first Cryptoki call made by an application, except for calls to What this function actually does is implementation-dependent; typically, it might cause Cryptoki to initialize its internal memory buffers, or any other resources it requires. If several applications are using Cryptoki, each one should call C_Initialize. Every call to Initialize should (eventually) be succeeded by a single call to Finalize. See Section 6.6 of PKCS#11 v.2.20 specifications for more details.

See Also