C# Class KeePassLib.Native.NativeLib

Interface to native library (library containing fast versions of several cryptographic functions).
Datei anzeigen Open project: cappert/keepass2 Class Usage Examples

Public Methods

Method Description
GetDesktopType ( ) : DesktopType
GetPlatformID ( ) : PlatformID
IsLibraryInstalled ( ) : bool

Determine if the native library is installed.

IsUnix ( ) : bool
RunConsoleApp ( string strAppPath, string strParams ) : string
RunConsoleApp ( string strAppPath, string strParams, string strStdInput ) : string
RunConsoleApp ( string strAppPath, string strParams, string strStdInput, AppRunFlags f ) : string
TransformKey256 ( byte pBuf256, byte pKey256, ulong uRounds ) : bool

Transform a key.

TransformKeyBenchmark256 ( uint uTimeMs, ulong &puRounds ) : bool

Benchmark key transformation.

Private Methods

Method Description
EnsureNoBom ( StreamWriter sw ) : void
FreeArrays ( IntPtr>.KeyValuePair kvpPointers ) : void
GetBuffers256 ( IntPtr>.KeyValuePair kvpSource, byte pbDestBuf, byte pbDestKey ) : void
PrepareArrays256 ( byte pBuf256, byte pKey256 ) : IntPtr>.KeyValuePair

Method Details

GetDesktopType() public static method

public static GetDesktopType ( ) : DesktopType
return DesktopType

GetPlatformID() public static method

public static GetPlatformID ( ) : PlatformID
return PlatformID

IsLibraryInstalled() public static method

Determine if the native library is installed.
public static IsLibraryInstalled ( ) : bool
return bool

IsUnix() public static method

public static IsUnix ( ) : bool
return bool

RunConsoleApp() public static method

public static RunConsoleApp ( string strAppPath, string strParams ) : string
strAppPath string
strParams string
return string

RunConsoleApp() public static method

public static RunConsoleApp ( string strAppPath, string strParams, string strStdInput ) : string
strAppPath string
strParams string
strStdInput string
return string

RunConsoleApp() public static method

public static RunConsoleApp ( string strAppPath, string strParams, string strStdInput, AppRunFlags f ) : string
strAppPath string
strParams string
strStdInput string
f AppRunFlags
return string

TransformKey256() public static method

Transform a key.
public static TransformKey256 ( byte pBuf256, byte pKey256, ulong uRounds ) : bool
pBuf256 byte Source and destination buffer.
pKey256 byte Key to use in the transformation.
uRounds ulong Number of transformation rounds.
return bool

TransformKeyBenchmark256() public static method

Benchmark key transformation.
public static TransformKeyBenchmark256 ( uint uTimeMs, ulong &puRounds ) : bool
uTimeMs uint Number of milliseconds to perform the benchmark.
puRounds ulong Number of transformations done.
return bool