Author: spouliot
Date: 2006-05-30 13:57:47 -0400 (Tue, 30 May 2006)
New Revision: 61270
Modified:
trunk/mcs/class/corlib/System.Security.Cryptography/AsymmetricKeyExchangeDeformatter.cs
trunk/mcs/class/corlib/System.Security.Cryptography/AsymmetricKeyExchangeFormatter.cs
trunk/mcs/class/corlib/System.Security.Cryptography/AsymmetricSignatureDeformatter.cs
trunk/mcs/class/corlib/System.Security.Cryptography/AsymmetricSignatureFormatter.cs
trunk/mcs/class/corlib/System.Security.Cryptography/ChangeLog
trunk/mcs/class/corlib/System.Security.Cryptography/DES.cs
trunk/mcs/class/corlib/System.Security.Cryptography/HashAlgorithm.cs
trunk/mcs/class/corlib/System.Security.Cryptography/RC2.cs
trunk/mcs/class/corlib/System.Security.Cryptography/RSA.cs
trunk/mcs/class/corlib/System.Security.Cryptography/RandomNumberGenerator.cs
trunk/mcs/class/corlib/System.Security.Cryptography/Rijndael.cs
trunk/mcs/class/corlib/System.Security.Cryptography/SHA256.cs
trunk/mcs/class/corlib/System.Security.Cryptography/SHA384.cs
trunk/mcs/class/corlib/System.Security.Cryptography/SHA512.cs
trunk/mcs/class/corlib/System.Security.Cryptography/SymmetricAlgorithm.cs
trunk/mcs/class/corlib/System.Security.Cryptography/TripleDES.cs
Log:
2006-05-30 Sebastien Pouliot <[EMAIL PROTECTED]>
* AsymmetricKeyExchangeDeformatter.cs: Under 2.0 the ctor is
protected.
* AsymmetricKeyExchangeFormatter.cs: Under 2.0 the ctor is protected.
* AsymmetricSignatureDeformatter.cs: Under 2.0 the ctor is protected.
* AsymmetricSignatureFormatter.cs: Under 2.0 the ctor is protected.
* DES.cs: Under 2.0 the ctor is protected.
* HashAlgorithm.cs: Under 2.0 the HashValue field is protected
internal.
* RandomNumberGenerator.cs: Under 2.0 the ctor is protected.
* RC2.cs: Under 2.0 the ctor is protected.
* Rijndael.cs: Under 2.0 the ctor is protected.
* RSA.cs: Under 2.0 the ctor is protected.
* SHA256.cs: Under 2.0 the ctor is protected.
* SHA384.cs: Under 2.0 the ctor is protected.
* SHA512.cs: Under 2.0 the ctor is protected.
* SymmetricAlgorithm.cs: Under 2.0 the ctor is protected.
* TripleDES.cs: Under 2.0 the ctor is protected.
Modified:
trunk/mcs/class/corlib/System.Security.Cryptography/AsymmetricKeyExchangeDeformatter.cs
===================================================================
---
trunk/mcs/class/corlib/System.Security.Cryptography/AsymmetricKeyExchangeDeformatter.cs
2006-05-30 17:56:51 UTC (rev 61269)
+++
trunk/mcs/class/corlib/System.Security.Cryptography/AsymmetricKeyExchangeDeformatter.cs
2006-05-30 17:57:47 UTC (rev 61270)
@@ -4,7 +4,7 @@
// Authors:
// Thomas Neidhart ([EMAIL PROTECTED])
//
-// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2006 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -33,9 +33,13 @@
#if NET_2_0
[ComVisible (true)]
#endif
- public abstract class AsymmetricKeyExchangeDeformatter {
-
- public AsymmetricKeyExchangeDeformatter ()
+ public abstract class AsymmetricKeyExchangeDeformatter {
+
+#if NET_2_0
+ protected AsymmetricKeyExchangeDeformatter ()
+#else
+ public AsymmetricKeyExchangeDeformatter ()
+#endif
{
}
@@ -49,4 +53,3 @@
public abstract void SetKey (AsymmetricAlgorithm key);
}
}
-
Modified:
trunk/mcs/class/corlib/System.Security.Cryptography/AsymmetricKeyExchangeFormatter.cs
===================================================================
---
trunk/mcs/class/corlib/System.Security.Cryptography/AsymmetricKeyExchangeFormatter.cs
2006-05-30 17:56:51 UTC (rev 61269)
+++
trunk/mcs/class/corlib/System.Security.Cryptography/AsymmetricKeyExchangeFormatter.cs
2006-05-30 17:57:47 UTC (rev 61270)
@@ -4,7 +4,7 @@
// Authors:
// Thomas Neidhart ([EMAIL PROTECTED])
//
-// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2006 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -34,8 +34,12 @@
[ComVisible (true)]
#endif
public abstract class AsymmetricKeyExchangeFormatter {
-
+
+#if NET_2_0
+ protected AsymmetricKeyExchangeFormatter ()
+#else
public AsymmetricKeyExchangeFormatter ()
+#endif
{
}
Modified:
trunk/mcs/class/corlib/System.Security.Cryptography/AsymmetricSignatureDeformatter.cs
===================================================================
---
trunk/mcs/class/corlib/System.Security.Cryptography/AsymmetricSignatureDeformatter.cs
2006-05-30 17:56:51 UTC (rev 61269)
+++
trunk/mcs/class/corlib/System.Security.Cryptography/AsymmetricSignatureDeformatter.cs
2006-05-30 17:57:47 UTC (rev 61270)
@@ -4,7 +4,7 @@
// Authors:
// Thomas Neidhart ([EMAIL PROTECTED])
//
-// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2006 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -34,8 +34,12 @@
[ComVisible (true)]
#endif
public abstract class AsymmetricSignatureDeformatter {
-
+
+#if NET_2_0
+ protected AsymmetricSignatureDeformatter ()
+#else
public AsymmetricSignatureDeformatter ()
+#endif
{
}
Modified:
trunk/mcs/class/corlib/System.Security.Cryptography/AsymmetricSignatureFormatter.cs
===================================================================
---
trunk/mcs/class/corlib/System.Security.Cryptography/AsymmetricSignatureFormatter.cs
2006-05-30 17:56:51 UTC (rev 61269)
+++
trunk/mcs/class/corlib/System.Security.Cryptography/AsymmetricSignatureFormatter.cs
2006-05-30 17:57:47 UTC (rev 61270)
@@ -4,7 +4,7 @@
// Authors:
// Thomas Neidhart ([EMAIL PROTECTED])
//
-// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2006 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -34,8 +34,12 @@
[ComVisible (true)]
#endif
public abstract class AsymmetricSignatureFormatter {
-
- public AsymmetricSignatureFormatter ()
+
+#if NET_2_0
+ protected AsymmetricSignatureFormatter ()
+#else
+ public AsymmetricSignatureFormatter ()
+#endif
{
}
Modified: trunk/mcs/class/corlib/System.Security.Cryptography/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Security.Cryptography/ChangeLog
2006-05-30 17:56:51 UTC (rev 61269)
+++ trunk/mcs/class/corlib/System.Security.Cryptography/ChangeLog
2006-05-30 17:57:47 UTC (rev 61270)
@@ -1,3 +1,23 @@
+2006-05-30 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * AsymmetricKeyExchangeDeformatter.cs: Under 2.0 the ctor is
+ protected.
+ * AsymmetricKeyExchangeFormatter.cs: Under 2.0 the ctor is protected.
+ * AsymmetricSignatureDeformatter.cs: Under 2.0 the ctor is protected.
+ * AsymmetricSignatureFormatter.cs: Under 2.0 the ctor is protected.
+ * DES.cs: Under 2.0 the ctor is protected.
+ * HashAlgorithm.cs: Under 2.0 the HashValue field is protected
+ internal.
+ * RandomNumberGenerator.cs: Under 2.0 the ctor is protected.
+ * RC2.cs: Under 2.0 the ctor is protected.
+ * Rijndael.cs: Under 2.0 the ctor is protected.
+ * RSA.cs: Under 2.0 the ctor is protected.
+ * SHA256.cs: Under 2.0 the ctor is protected.
+ * SHA384.cs: Under 2.0 the ctor is protected.
+ * SHA512.cs: Under 2.0 the ctor is protected.
+ * SymmetricAlgorithm.cs: Under 2.0 the ctor is protected.
+ * TripleDES.cs: Under 2.0 the ctor is protected.
+
2006-02-03 Zoltan Varga <[EMAIL PROTECTED]>
* CryptoStream.cs: Add 'override' keyword to Dispose (bool) method in
2.0.
Modified: trunk/mcs/class/corlib/System.Security.Cryptography/DES.cs
===================================================================
--- trunk/mcs/class/corlib/System.Security.Cryptography/DES.cs 2006-05-30
17:56:51 UTC (rev 61269)
+++ trunk/mcs/class/corlib/System.Security.Cryptography/DES.cs 2006-05-30
17:57:47 UTC (rev 61270)
@@ -6,7 +6,7 @@
// Sebastien Pouliot <[EMAIL PROTECTED]>
//
// Portions (C) 2002 Motus Technologies Inc. (http://www.motus.com)
-// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2006 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -44,7 +44,11 @@
private const int keySizeByte = 8;
+#if NET_2_0
+ protected DES ()
+#else
public DES ()
+#endif
{
KeySizeValue = 64;
BlockSizeValue = 64;
Modified: trunk/mcs/class/corlib/System.Security.Cryptography/HashAlgorithm.cs
===================================================================
--- trunk/mcs/class/corlib/System.Security.Cryptography/HashAlgorithm.cs
2006-05-30 17:56:51 UTC (rev 61269)
+++ trunk/mcs/class/corlib/System.Security.Cryptography/HashAlgorithm.cs
2006-05-30 17:57:47 UTC (rev 61270)
@@ -7,7 +7,7 @@
//
// Copyright 2001 by Matthew S. Ford.
// Portions (C) 2002 Motus Technologies Inc. (http://www.motus.com)
-// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2006 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -40,7 +40,11 @@
#endif
public abstract class HashAlgorithm : ICryptoTransform {
+#if NET_2_0
+ protected internal byte[] HashValue;
+#else
protected byte[] HashValue;
+#endif
protected int HashSizeValue;
protected int State;
private bool disposed;
Modified: trunk/mcs/class/corlib/System.Security.Cryptography/RC2.cs
===================================================================
--- trunk/mcs/class/corlib/System.Security.Cryptography/RC2.cs 2006-05-30
17:56:51 UTC (rev 61269)
+++ trunk/mcs/class/corlib/System.Security.Cryptography/RC2.cs 2006-05-30
17:57:47 UTC (rev 61270)
@@ -5,7 +5,7 @@
// Andrew Birkett ([EMAIL PROTECTED])
// Sebastien Pouliot ([EMAIL PROTECTED])
//
-// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2006 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -71,8 +71,12 @@
EffectiveKeySizeValue = value;
}
}
-
- public RC2 ()
+
+#if NET_2_0
+ protected RC2 ()
+#else
+ public RC2 ()
+#endif
{
KeySizeValue = 128;
BlockSizeValue = 64;
Modified: trunk/mcs/class/corlib/System.Security.Cryptography/RSA.cs
===================================================================
--- trunk/mcs/class/corlib/System.Security.Cryptography/RSA.cs 2006-05-30
17:56:51 UTC (rev 61269)
+++ trunk/mcs/class/corlib/System.Security.Cryptography/RSA.cs 2006-05-30
17:57:47 UTC (rev 61270)
@@ -7,7 +7,7 @@
//
// (C) 2002
// Portions (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
-// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2006 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -51,8 +51,12 @@
{
return (RSA) CryptoConfig.CreateFromName (algName);
}
-
+
+#if NET_2_0
+ protected RSA ()
+#else
public RSA ()
+#endif
{
}
Modified:
trunk/mcs/class/corlib/System.Security.Cryptography/RandomNumberGenerator.cs
===================================================================
---
trunk/mcs/class/corlib/System.Security.Cryptography/RandomNumberGenerator.cs
2006-05-30 17:56:51 UTC (rev 61269)
+++
trunk/mcs/class/corlib/System.Security.Cryptography/RandomNumberGenerator.cs
2006-05-30 17:57:47 UTC (rev 61270)
@@ -5,7 +5,7 @@
// Duco Fijma ([EMAIL PROTECTED])
//
// (C) 2002 Duco Fijma
-// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2006 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -35,8 +35,12 @@
[ComVisible (true)]
#endif
public abstract class RandomNumberGenerator {
-
+
+#if NET_2_0
+ protected RandomNumberGenerator ()
+#else
public RandomNumberGenerator ()
+#endif
{
}
Modified: trunk/mcs/class/corlib/System.Security.Cryptography/Rijndael.cs
===================================================================
--- trunk/mcs/class/corlib/System.Security.Cryptography/Rijndael.cs
2006-05-30 17:56:51 UTC (rev 61269)
+++ trunk/mcs/class/corlib/System.Security.Cryptography/Rijndael.cs
2006-05-30 17:57:47 UTC (rev 61270)
@@ -5,7 +5,7 @@
// Andrew Birkett ([EMAIL PROTECTED])
//
// (C) 2002
-// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2006 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -49,8 +49,12 @@
{
return (Rijndael) CryptoConfig.CreateFromName (algName);
}
-
- public Rijndael ()
+
+#if NET_2_0
+ protected Rijndael ()
+#else
+ public Rijndael ()
+#endif
{
KeySizeValue = 256;
BlockSizeValue = 128;
Modified: trunk/mcs/class/corlib/System.Security.Cryptography/SHA256.cs
===================================================================
--- trunk/mcs/class/corlib/System.Security.Cryptography/SHA256.cs
2006-05-30 17:56:51 UTC (rev 61269)
+++ trunk/mcs/class/corlib/System.Security.Cryptography/SHA256.cs
2006-05-30 17:57:47 UTC (rev 61270)
@@ -7,7 +7,7 @@
//
// Copyright 2001 by Matthew S. Ford.
// Portions (C) 2002 Motus Technologies Inc. (http://www.motus.com)
-// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2006 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -38,7 +38,11 @@
#endif
public abstract class SHA256 : HashAlgorithm {
- public SHA256 ()
+#if NET_2_0
+ protected SHA256 ()
+#else
+ public SHA256 ()
+#endif
{
HashSizeValue = 256;
}
Modified: trunk/mcs/class/corlib/System.Security.Cryptography/SHA384.cs
===================================================================
--- trunk/mcs/class/corlib/System.Security.Cryptography/SHA384.cs
2006-05-30 17:56:51 UTC (rev 61269)
+++ trunk/mcs/class/corlib/System.Security.Cryptography/SHA384.cs
2006-05-30 17:57:47 UTC (rev 61270)
@@ -7,7 +7,7 @@
//
// Copyright 2001 by Matthew S. Ford.
// Portions (C) 2002 Motus Technologies Inc. (http://www.motus.com)
-// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2006 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -38,7 +38,11 @@
#endif
public abstract class SHA384 : HashAlgorithm {
- public SHA384 ()
+#if NET_2_0
+ protected SHA384 ()
+#else
+ public SHA384 ()
+#endif
{
HashSizeValue = 384;
}
Modified: trunk/mcs/class/corlib/System.Security.Cryptography/SHA512.cs
===================================================================
--- trunk/mcs/class/corlib/System.Security.Cryptography/SHA512.cs
2006-05-30 17:56:51 UTC (rev 61269)
+++ trunk/mcs/class/corlib/System.Security.Cryptography/SHA512.cs
2006-05-30 17:57:47 UTC (rev 61270)
@@ -7,7 +7,7 @@
//
// Copyright 2001 by Matthew S. Ford.
// Portions (C) 2002 Motus Technologies Inc. (http://www.motus.com)
-// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2006 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -38,7 +38,11 @@
#endif
public abstract class SHA512 : HashAlgorithm {
- public SHA512 ()
+#if NET_2_0
+ protected SHA512 ()
+#else
+ public SHA512 ()
+#endif
{
HashSizeValue = 512;
}
Modified:
trunk/mcs/class/corlib/System.Security.Cryptography/SymmetricAlgorithm.cs
===================================================================
--- trunk/mcs/class/corlib/System.Security.Cryptography/SymmetricAlgorithm.cs
2006-05-30 17:56:51 UTC (rev 61269)
+++ trunk/mcs/class/corlib/System.Security.Cryptography/SymmetricAlgorithm.cs
2006-05-30 17:57:47 UTC (rev 61270)
@@ -6,7 +6,7 @@
// Sebastien Pouliot <[EMAIL PROTECTED]>
//
// Portions (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
-// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2006 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -49,7 +49,11 @@
protected PaddingMode PaddingValue;
private bool m_disposed;
- public SymmetricAlgorithm ()
+#if NET_2_0
+ protected SymmetricAlgorithm ()
+#else
+ public SymmetricAlgorithm ()
+#endif
{
ModeValue = CipherMode.CBC;
PaddingValue = PaddingMode.PKCS7;
Modified: trunk/mcs/class/corlib/System.Security.Cryptography/TripleDES.cs
===================================================================
--- trunk/mcs/class/corlib/System.Security.Cryptography/TripleDES.cs
2006-05-30 17:56:51 UTC (rev 61269)
+++ trunk/mcs/class/corlib/System.Security.Cryptography/TripleDES.cs
2006-05-30 17:57:47 UTC (rev 61270)
@@ -5,7 +5,7 @@
// Sebastien Pouliot <[EMAIL PROTECTED]>
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
-// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2006 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -45,7 +45,11 @@
#endif
public abstract class TripleDES : SymmetricAlgorithm {
+#if NET_2_0
+ protected TripleDES ()
+#else
public TripleDES ()
+#endif
{
// from SymmetricAlgorithm
KeySizeValue = 192;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches