Files
modernkeepass/ModernKeePassLib/Native/Native.PCL.cs

89 lines
1.9 KiB
C#
Raw Normal View History

2017-09-22 15:40:24 +02:00
using System;
using PlatformID = System.UInt32;
2017-09-26 15:38:58 +02:00
namespace ModernKeePassLib.Native
2017-09-22 15:40:24 +02:00
{
internal static class NativeLib
{
public static ulong MonoVersion {
get { throw new NotImplementedException(); }
}
public static bool IsUnix()
{
return true;
}
}
internal static class NativeMethods
{
public static bool SupportsStrCmpNaturally => false;
2017-09-22 15:40:24 +02:00
internal const int GCRY_CIPHER_AES256 = 9;
internal const int GCRY_CIPHER_MODE_ECB = 1;
public static int StrCmpNaturally (string s1, string s2)
2017-09-22 15:40:24 +02:00
{
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();
}
}
2017-09-22 15:40:24 +02:00
public enum DataProtectionScope
2017-09-22 15:40:24 +02:00
{
CurrentUser,
LocalMachine
}
2017-09-22 15:40:24 +02:00
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();
}
}
}