+// [MethodImplAttribute(MethodImplOptions.InternalCall)]
+// extern static void EncryptInternal (byte [] data, object scope);
+
+// [MethodImplAttribute(MethodImplOptions.InternalCall)]
+// extern static void DecryptInternal (byte [] data, object scope);
+
+// static readonly object scope = Enum.Parse (
+// Assembly.Load (Consts.AssemblySystem_Security)
+// .GetType ("System.Security.Cryptography.MemoryProtectionScope"), "SameProcess");
+
+ // Note that ProtectedMemory is not supported on non-Windows environment right now.
+ private void Encrypt ()
+ {
+ if ((data != null) && (data.Length > 0)) {
+ // It somehow causes nunit test breakage
+ // EncryptInternal (data, scope);
+ }
+ }
+
+ // Note that ProtectedMemory is not supported on non-Windows environment right now.
+ private void Decrypt ()
+ {
+ if ((data != null) && (data.Length > 0)) {
+ // It somehow causes nunit test breakage
+ // DecryptInternal (data, scope);
+ }
+ }
+