mirror of
https://github.com/wismna/ModernKeePassLib.git
synced 2025-10-03 15:40:20 -04:00
Downgrade to net standard 1.2
This commit is contained in:
@@ -1,106 +0,0 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user