Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Pouliot <sebastien@ximian.com>2004-05-11 15:34:34 +0400
committerSebastien Pouliot <sebastien@ximian.com>2004-05-11 15:34:34 +0400
commite2a2d743dc533c4ac0eee02cac314d9c9f17c271 (patch)
treed72e7050cfc2f4c1866c8ad40c31dbe4b7db2bcc /mcs/class/Mono.Security
parent32fa6d4398606b1b80a7803efa19d90270cfb91d (diff)
2004-05-11 Sebastien Pouliot <sebastien@ximian.com>
* PKCS8.cs: Fixed negative Version check. * MD2Managed.cs: Added readonly to static array constants. * MD4Managed.cs: Removed unrequired memory allocation in MD4Transform. svn path=/trunk/mcs/; revision=27088
Diffstat (limited to 'mcs/class/Mono.Security')
-rw-r--r--mcs/class/Mono.Security/Mono.Security.Cryptography/ChangeLog6
-rw-r--r--mcs/class/Mono.Security/Mono.Security.Cryptography/MD2Managed.cs5
-rwxr-xr-xmcs/class/Mono.Security/Mono.Security.Cryptography/MD4Managed.cs5
-rwxr-xr-xmcs/class/Mono.Security/Mono.Security.Cryptography/PKCS8.cs2
4 files changed, 12 insertions, 6 deletions
diff --git a/mcs/class/Mono.Security/Mono.Security.Cryptography/ChangeLog b/mcs/class/Mono.Security/Mono.Security.Cryptography/ChangeLog
index 5cfc57e242e..31d64dd8545 100644
--- a/mcs/class/Mono.Security/Mono.Security.Cryptography/ChangeLog
+++ b/mcs/class/Mono.Security/Mono.Security.Cryptography/ChangeLog
@@ -1,3 +1,9 @@
+2004-05-10 Sebastien Pouliot <sebastien@ximian.com>
+
+ * PKCS8.cs: Fixed negative Version check.
+ * MD2Managed.cs: Added readonly to static array constants.
+ * MD4Managed.cs: Removed unrequired memory allocation in MD4Transform.
+
2004-05-01 Sebastien Pouliot <sebastien@ximian.com>
* CryptoConvert.cs: Added support for truncated, but still valid, RSA
diff --git a/mcs/class/Mono.Security/Mono.Security.Cryptography/MD2Managed.cs b/mcs/class/Mono.Security/Mono.Security.Cryptography/MD2Managed.cs
index b73deb9f2c4..62ece9d1bfa 100644
--- a/mcs/class/Mono.Security/Mono.Security.Cryptography/MD2Managed.cs
+++ b/mcs/class/Mono.Security/Mono.Security.Cryptography/MD2Managed.cs
@@ -2,9 +2,10 @@
// MD2Managed.cs - Message Digest 2 Managed Implementation
//
// Author:
-// Sebastien Pouliot (spouliot@motus.com)
+// Sebastien Pouliot (sebastien@ximian.com)
//
// (C) 2001-2003 Motus Technologies Inc. (http://www.motus.com)
+// (C) 2004 Novell (http://www.novell.com)
//
using System;
@@ -26,7 +27,7 @@ namespace Mono.Security.Cryptography {
/// Permutation of 0..255 constructed from the digits of pi. It gives a
/// "random" nonlinear byte substitution operation.
/// </summary>
- static private byte[] PI_SUBST = {
+ private static readonly byte[] PI_SUBST = {
41, 46, 67, 201, 162, 216, 124, 1, 61, 54, 84, 161, 236, 240, 6,
19, 98, 167, 5, 243, 192, 199, 115, 140, 152, 147, 43, 217, 188,
76, 130, 202, 30, 155, 87, 60, 253, 212, 224, 22, 103, 66, 111, 24,
diff --git a/mcs/class/Mono.Security/Mono.Security.Cryptography/MD4Managed.cs b/mcs/class/Mono.Security/Mono.Security.Cryptography/MD4Managed.cs
index 26ba30d0ce6..b9c9d24e488 100755
--- a/mcs/class/Mono.Security/Mono.Security.Cryptography/MD4Managed.cs
+++ b/mcs/class/Mono.Security/Mono.Security.Cryptography/MD4Managed.cs
@@ -2,13 +2,13 @@
// MD4Managed.cs - Message Digest 4 Managed Implementation
//
// Author:
-// Sebastien Pouliot (spouliot@motus.com)
+// Sebastien Pouliot (sebastien@ximian.com)
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
+// (C) 2004 Novell (http://www.novell.com)
//
using System;
-using System.Security.Cryptography;
namespace Mono.Security.Cryptography {
@@ -195,7 +195,6 @@ namespace Mono.Security.Cryptography {
uint b = state [1];
uint c = state [2];
uint d = state [3];
- uint[] x = new uint [16];
Decode (x, block, index);
diff --git a/mcs/class/Mono.Security/Mono.Security.Cryptography/PKCS8.cs b/mcs/class/Mono.Security/Mono.Security.Cryptography/PKCS8.cs
index ffd555e4d6d..d6fd0e4b251 100755
--- a/mcs/class/Mono.Security/Mono.Security.Cryptography/PKCS8.cs
+++ b/mcs/class/Mono.Security/Mono.Security.Cryptography/PKCS8.cs
@@ -118,7 +118,7 @@ namespace Mono.Security.Cryptography {
public int Version {
get { return _version; }
set {
- if (_version < 0)
+ if (value < 0)
throw new ArgumentOutOfRangeException ("negative version");
_version = value;
}