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

Pkcs11() public method

Loads PCKS#11 library
public Pkcs11 ( string libraryPath, bool useGetFunctionList ) : System
libraryPath string Library name or path
useGetFunctionList bool Flag indicating whether cryptoki function pointers should be acquired via C_GetFunctionList (true) or via platform native function (false)
return System
        public Pkcs11(string libraryPath, bool useGetFunctionList)
        {
            try
            {
                if (!string.IsNullOrEmpty(libraryPath))
                    _libraryHandle = UnmanagedLibrary.Load(libraryPath);

                _delegates = new Delegates(_libraryHandle, useGetFunctionList);
            }
            catch
            {
                Release();
                throw;
            }
        }

Same methods

Pkcs11::Pkcs11 ( string libraryPath ) : System