C# Class KeePassLib.Native.NativeLib

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

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static GetDesktopType ( ) : DesktopType
Résultat DesktopType

GetPlatformID() public static méthode

public static GetPlatformID ( ) : PlatformID
Résultat PlatformID

IsLibraryInstalled() public static méthode

Determine if the native library is installed.
public static IsLibraryInstalled ( ) : bool
Résultat bool

IsUnix() public static méthode

public static IsUnix ( ) : bool
Résultat bool

RunConsoleApp() public static méthode

public static RunConsoleApp ( string strAppPath, string strParams ) : string
strAppPath string
strParams string
Résultat string

RunConsoleApp() public static méthode

public static RunConsoleApp ( string strAppPath, string strParams, string strStdInput ) : string
strAppPath string
strParams string
strStdInput string
Résultat string

RunConsoleApp() public static méthode

public static RunConsoleApp ( string strAppPath, string strParams, string strStdInput, AppRunFlags f ) : string
strAppPath string
strParams string
strStdInput string
f AppRunFlags
Résultat string

TransformKey256() public static méthode

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.
Résultat bool

TransformKeyBenchmark256() public static méthode

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.
Résultat bool