Net.Pkcs11Interop.HighLevelAPI.Pkcs11.Pkcs11 C# (CSharp) Method

Pkcs11() public method

Loads and initializes PCKS#11 library
public Pkcs11 ( string libraryPath, bool useOsLocking ) : System
libraryPath string Library name or path
useOsLocking bool Flag indicating whether PKCS#11 library can use the native operation system threading model for locking. Should be set to true in all multithreaded applications.
return System
        public Pkcs11(string libraryPath, bool useOsLocking)
        {
            if (Platform.UnmanagedLongSize == 4)
            {
                if (Platform.StructPackingSize == 0)
                    _p11_40 = new HighLevelAPI40.Pkcs11(libraryPath, useOsLocking);
                else
                    _p11_41 = new HighLevelAPI41.Pkcs11(libraryPath, useOsLocking);
            }
            else
            {
                if (Platform.StructPackingSize == 0)
                    _p11_80 = new HighLevelAPI80.Pkcs11(libraryPath, useOsLocking);
                else
                    _p11_81 = new HighLevelAPI81.Pkcs11(libraryPath, useOsLocking);
            }
        }

Same methods

Pkcs11::Pkcs11 ( string libraryPath, bool useOsLocking, bool useGetFunctionList ) : System