As part of #7589
- CoreFX import only for Windows platform (no support for non-Windows platforms, see https://github.com/dotnet/corefx/issues/22510)
- left Mono managed implementation for non-Windows platforms
- removed DataProtectionScope parameter value check (no such a check in CoreFX and NET Framework, see https://github.com/dotnet/corefx/pull/30726) and couple of related unit tests
- added CoreFX xunit tests
* ProtectedData.cs: Added support for Windows (2000 and later) by
p/invoking DPAPI thru Mono.Security.Cryptography.NativeDapiProtection.
svn path=/trunk/mcs/; revision=52282
* CryptographicAttributeCollection.cs: Fixed Add and Remove methods.
* ProtectedMemory.cs: Implemented (unmanaged) for Windows only.
* ProtectedData.cs: Implemented for everything except Windows ;-) by
using the new ManagedProtection class.
svn path=/trunk/mcs/; revision=52000
* System.Security.dll.sources: Added System.Security.Cryptography/
ProtectedData.cs, ProtectedMemory.cs, DataProtectionScope.cs and
MemoryProtectionScope.cs as they been moved from mscorlib to here.
* System.Security_test.dll.sources : Added Test/System.Security.
Cryptography/ProtectedDataTest.cs and ProtectedMemoryTest.cs for the
same reason.
svn path=/trunk/mcs/; revision=38060