[prev in list] [next in list] [prev in thread] [next in thread]
List: mono-patches
Subject: [Mono-patches] mcs/class/corlib/Mono.Security.Cryptography RSAManaged.cs,1.9,1.9.2.1 ChangeLog,1.28,
From: spouliot () mono-cvs ! ximian ! com (Sebastien Pouliot (sebastien () ximian ! com))
Date: 2004-09-29 20:37:50
Message-ID: 20040929203750.7037894762 () mono-cvs ! ximian ! com
[Download RAW message or body]
Update of /cvs/public/mcs/class/corlib/Mono.Security.Cryptography
In directory mono-cvs.ximian.com:/tmp/cvs-serv21613
Modified Files:
Tag: mono-1-0
RSAManaged.cs ChangeLog
Log Message:
2004-09-29 Sebastien Pouliot <sebastien@ximian.com>
* RSAManaged.cs: KeySize is now always a multiple of 8 bits.
Fix #66929.
Index: RSAManaged.cs
===================================================================
RCS file: /cvs/public/mcs/class/corlib/Mono.Security.Cryptography/RSAManaged.cs,v
retrieving revision 1.9
retrieving revision 1.9.2.1
diff -u -d -r1.9 -r1.9.2.1
--- RSAManaged.cs 11 Jun 2004 01:58:23 -0000 1.9
+++ RSAManaged.cs 29 Sep 2004 20:37:48 -0000 1.9.2.1
@@ -149,8 +149,12 @@
public override int KeySize {
get {
// in case keypair hasn't been (yet) generated
- if (keypairGenerated)
- return n.BitCount ();
+ if (keypairGenerated) {
+ int ks = n.BitCount ();
+ if ((ks & 7) != 0)
+ ks = ks + (8 - (ks & 7));
+ return ks;
+ }
else
return base.KeySize;
}
Index: ChangeLog
===================================================================
RCS file: /cvs/public/mcs/class/corlib/Mono.Security.Cryptography/ChangeLog,v
retrieving revision 1.28
retrieving revision 1.28.2.1
diff -u -d -r1.28 -r1.28.2.1
--- ChangeLog 23 Jun 2004 14:28:01 -0000 1.28
+++ ChangeLog 29 Sep 2004 20:37:48 -0000 1.28.2.1
@@ -1,3 +1,8 @@
+2004-09-29 Sebastien Pouliot <sebastien@ximian.com>
+
+ * RSAManaged.cs: KeySize is now always a multiple of 8 bits.
+ Fix #66929.
+
2004-06-23 Sebastien Pouliot <sebastien@ximian.com>
* SymmetricTransform.cs: Reduce by one the number of block when
_______________________________________________
Mono-patches maillist - Mono-patches@ximian.com
http://lists.ximian.com/mailman/listinfo/mono-patches
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic