Files
modernkeepasslib/ModernKeePassLib/Native/Native.PCL.cs
Geoffroy BONNEVILLE b8240d482f Update Lib to version 2.44
Update nuget packages
2020-03-16 15:28:05 +01:00

107 lines
2.4 KiB
C#

using System;
namespace ModernKeePassLib.Native
{
internal static class NativeLib
{
public static ulong MonoVersion {
get { throw new NotImplementedException(); }
}
public static bool IsUnix()
{
return true;
}
public static bool TransformKey256(byte[] pbNative, byte[] pbSeed, ulong uRounds)
{
return false;
}
public static System.PlatformID GetPlatformID()
{
return Environment.OSVersion.Platform;
}
internal static string DecodeArgsToPath(string strApp)
{
if (!string.IsNullOrEmpty(strApp)) return strApp;
return string.Empty;
}
internal static string EncodeDataToArgs(string v)
{
throw new NotImplementedException();
}
public static string DecodeArgsToData(string strApp)
{
throw new NotImplementedException();
}
}
internal static class NativeMethods
{
public static bool SupportsStrCmpNaturally => false;
internal const int GCRY_CIPHER_AES256 = 9;
internal const int GCRY_CIPHER_MODE_ECB = 1;
public static int StrCmpNaturally (string s1, string s2)
{
throw new NotImplementedException();
}
internal static void gcry_check_version(IntPtr zero)
{
throw new NotImplementedException();
}
public static void gcry_cipher_open(ref IntPtr intPtr, object gcryCipherAes256, object gcryCipherModeEcb, int i)
{
throw new NotImplementedException();
}
internal static int gcry_cipher_setkey(IntPtr h, IntPtr pSeed32, IntPtr n32)
{
throw new NotImplementedException();
}
internal static void gcry_cipher_close(IntPtr h)
{
throw new NotImplementedException();
}
internal static int gcry_cipher_encrypt(IntPtr h, IntPtr pData32, IntPtr n32, IntPtr zero1, IntPtr zero2)
{
throw new NotImplementedException();
}
public static string GetUserRuntimeDir()
{
throw new NotImplementedException();
}
}
internal enum MemoryProtectionScope
{
CrossProcess,
SameLogon,
SameProcess
}
internal static class ProtectedMemory
{
public static byte[] Protect(byte[] userData, MemoryProtectionScope scope)
{
throw new NotImplementedException();
}
public static byte[] Unprotect(byte[] userData, MemoryProtectionScope scope)
{
throw new NotImplementedException();
}
}
}