18 Commits
Author SHA1 Message Date
Maxim Lipnin f602125d10 CoreFX import for ProtectedData type (Windows part) (#9375)
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
2018-07-09 15:29:07 +02:00
Manuel de la Pena b73480af34 [Tests] Ensure that only a subset of the System.Security tests are ran on mobile platforms.
(cherry picked from commit 9f696f0eab)
2017-11-01 03:18:15 +01:00
Alexander Köplinger 70cb5fdd9f [System.Security] Fix CryptographicException from ProtectedData.Protect with multiple threads
The code in ManagedProtection.GetKey() instantiated a new RSACryptoServiceProvider singleton without proper
locking to avoid multiple threads running the initialization concurrently.
Since RSACryptoServiceProvider (or rather KeyPairPersistence underneath) uses an XML file with a name derived
from the parameters to store the data there could be a case where one thread writes while another tries to read
and gets garbage. This results in a CryptographicException later on.

Added locking to prevent this.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=38933
2016-03-01 07:24:02 +01:00
Alexander Köplinger b03e606287 Remove ChangeLog files from the repo
They weren't updated in the last 6 years and aren't helpful anymore (e.g. by causing unrelated matches during git grep searches).
2016-01-29 19:17:06 +01:00
Alexander Köplinger 746650d1b9 [bcl] Remove more NET_2_0 checks from class libs 2015-01-17 05:45:39 +01:00
Sebastien Pouliot e6e724d234 2005-10-20 Sebastien Pouliot <[email protected]>
* CryptographicAttributeObjectCas.cs: New. CAS unit tests.
	* CryptographicAttributeObjectEnumeratorCas.cs: New. CAS unit tests.
	* CryptographicAttributeObjectEnumeratorTest.cs: New. Unit tests.
	* CryptographicAttributeObjectCollectionCas.cs: New. CAS unit tests.
	* CryptographicAttributeObjectCollectionTest.cs: New. Unit tests.
	* ProtectedDataCas.cs: New. CAS unit tests.
	* ProtectedDataTest.cs: Reworked/complete unit tests.
	* ProtectedMemoryCas.cs: New. CAS unit tests.
	* ProtectedMemoryTest.cs: Reworked/complete unit tests.


svn path=/trunk/mcs/; revision=51996
2005-10-20 18:40:44 +00:00
Sebastien Pouliot 6a080fe2bd In Test/System.Security.Cryptography:
2005-09-26  Sebastien Pouliot  <[email protected]>

	* Asn*.cs, Oid*.cs: Moved to System.dll

In Test/System.Security.Permissions:
2005-09-26  Sebastien Pouliot  <[email protected]>

	* StorePermissionAttributeTest.cs: Moved in System.dll

In Test/System.Security.Cryptography.X509Certificates:
2005-09-26  Sebastien Pouliot  <[email protected]>
	* All tests moved to System.dll assembly.
In System.Security.Cryptography:
2005-09-26  Sebastien Pouliot  <[email protected]>
	* Asn*.cs, Oid*.cs: Moved to System.dll
In System.Security.Permissions:
2005-09-26  Sebastien Pouliot  <[email protected]>

	* Store*.cs: Moved in System.dll

In .:
2005-09-26  Sebastien Pouliot  <[email protected]>

	* System.Security.dll.sources: Remove all X509 related classes.
	* System.Security_test.dll.sources: Remove all X509 related tests.
	* System.Security.Cryptography.X509Certificates/*.cs: moved to 
	System.dll assembly.
	* Test/System.Security.Cryptography.X509Certificates/*.cs: moved to
	System.dll assembly.

In System.Security.Cryptography.X509Certificates:
2005-09-26  Sebastien Pouliot  <[email protected]>
	* All classes moved in System.dll

svn path=/trunk/mcs/; revision=50770
2005-09-26 14:08:58 +00:00
Ben Maurer a68aa2eda4 remove executable bit from changelogs
svn path=/trunk/mcs/; revision=46563
2005-06-27 15:53:16 +00:00
Ben Maurer 0e8decdb37 remove svn:executable from .cs files
svn path=/trunk/mcs/; revision=46562
2005-06-27 15:51:40 +00:00
Sebastien Pouliot 30598dc4b5 2005-04-27 Sebastien Pouliot <[email protected]>
* ProtectedDataTest.cs: Updated to NUnit 2.2 API to use Ignore it the 
	platform doesn't support ProtectedData.
	* ProtectedMemoryTest.cs: Updated to NUnit 2.2 API to use Ignore it 
	the platform doesn't support ProtectedData.


svn path=/trunk/mcs/; revision=43653
2005-04-27 14:15:06 +00:00
Sebastien Pouliot d71fc598bf 2005-04-23 Sebastien Pouliot <[email protected]>
* CryptographicAttributeTest.cs: Changed class names to match beta2.


svn path=/trunk/mcs/; revision=43479
2005-04-23 14:06:56 +00:00
Sebastien Pouliot f599a3bbf1 2005-01-20 Sebastien Pouliot <[email protected]>
* AsnEncodedDataTest.cs: Added test case for SubjectAltName extension.


svn path=/trunk/mcs/; revision=39295
2005-01-21 00:37:54 +00:00
Sebastien Pouliot c054f6ce00 2005-01-17 Sebastien Pouliot <[email protected]>
* AsnEncodedDataTest.cs: Added tests decode Fx supported Enhanced Key
	Usage extension and Fx "officially" unsupported Netscape Cert Type
	extension. Both are docoded sucessfully at this level.


svn path=/trunk/mcs/; revision=39047
2005-01-17 20:44:30 +00:00
Sebastien Pouliot 8ec4552b07 2005-01-13 Sebastien Pouliot <[email protected]>
* AsnEncodedDataTest.cs: Added tests for Oid, RawData properties and
	for CopyFrom method.
	* CryptographicAttributeTest.cs: Updated to NUnit 2.2 tests.


svn path=/trunk/mcs/; revision=38920
2005-01-14 03:12:50 +00:00
Sebastien Pouliot bbc7ffba39 2004-12-23 Sebastien Pouliot <[email protected]>
* 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
2004-12-23 13:50:47 +00:00
Sebastien Pouliot 2c733c2a20 2004-07-09 Sebastien Pouliot <[email protected]>
* AsnEncodedDataTest.cs: Fixed for Fx 2.0 beta1.
	* CryptographicAttributeTest.cs: New. Moved from S.S.C.Pkcs.
	* OidTest.cs: Fixed for Fx 2.0 beta1.

svn path=/trunk/mcs/; revision=30939
2004-07-09 14:53:59 +00:00
Martin Baulig dfedf08d98 2004-04-22 Martin Baulig <[email protected]>
Renamed the `NET_1_2' conditional to `NET_2_0' in all files.

svn path=/trunk/mcs/; revision=25877
2004-04-23 02:24:02 +00:00
Sebastien Pouliot 41a29fde13 2003-11-06 Sebastien Pouliot <[email protected]>
* AsnEncodedDataTest.cs: New. Unit tests for AsnEncodedData (.NET 1.2).
	* OidTest.cs: New. Unit tests for Oid (.NET 1.2).
	* OidCollectionTest.cs: New. Unit tests for OidCollection (.NET 1.2).
	* OidEnumeratorTest.cs: New. Unit tests for OidEnumerator (.NET 1.2).

svn path=/trunk/mcs/; revision=19702
2003-11-07 02:04:00 +00:00