/// <summary> /// Loads PCKS#11 library /// </summary> /// <param name="libraryPath">Library name or path</param> /// <param name="useGetFunctionList">Flag indicating whether cryptoki function pointers should be acquired via C_GetFunctionList (true) or via platform native function (false)</param> public RutokenPkcs11Library(string libraryPath, bool useGetFunctionList) : base(libraryPath, useGetFunctionList) { try { _rutokenDelegates = new RutokenDelegates(_libraryHandle); } catch { base.Dispose(); throw; } }
/// <summary> /// Loads PCKS#11 library /// </summary> /// <param name="libraryPath">Library name or path</param> public RutokenPkcs11Library(string libraryPath) : base(libraryPath) { try { _rutokenDelegates = new RutokenDelegates(_libraryHandle); } catch { base.Dispose(); throw; } }