Author: spouliot
Date: 2005-04-18 08:47:47 -0400 (Mon, 18 Apr 2005)
New Revision: 43208
Modified:
trunk/mcs/class/corlib/Mono.Security.Cryptography/ChangeLog
trunk/mcs/class/corlib/Mono.Security.Cryptography/SymmetricTransform.cs
Log:
2005-04-18 Sebastien Pouliot <[EMAIL PROTECTED]>
* SymmetricTransform.cs: Fixed a division by zero if someone changes
the feedback value to 0.
Modified: trunk/mcs/class/corlib/Mono.Security.Cryptography/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Mono.Security.Cryptography/ChangeLog 2005-04-18
11:35:30 UTC (rev 43207)
+++ trunk/mcs/class/corlib/Mono.Security.Cryptography/ChangeLog 2005-04-18
12:47:47 UTC (rev 43208)
@@ -1,3 +1,8 @@
+2005-04-18 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * SymmetricTransform.cs: Fixed a division by zero if someone changes
+ the feedback value to 0.
+
2005-03-30 Sebastien Pouliot <[EMAIL PROTECTED]>
* SymmetricTransform.cs: Fixed a padding bug affecting that can occurs
Modified:
trunk/mcs/class/corlib/Mono.Security.Cryptography/SymmetricTransform.cs
===================================================================
--- trunk/mcs/class/corlib/Mono.Security.Cryptography/SymmetricTransform.cs
2005-04-18 11:35:30 UTC (rev 43207)
+++ trunk/mcs/class/corlib/Mono.Security.Cryptography/SymmetricTransform.cs
2005-04-18 12:47:47 UTC (rev 43208)
@@ -65,7 +65,8 @@
Buffer.BlockCopy (rgbIV, 0, temp, 0, BlockSizeByte);
temp2 = new byte [BlockSizeByte];
FeedBackByte = (algo.FeedbackSize >> 3);
- FeedBackIter = (int) BlockSizeByte / FeedBackByte;
+ if (FeedBackByte != 0)
+ FeedBackIter = (int) BlockSizeByte /
FeedBackByte;
// transform buffers
workBuff = new byte [BlockSizeByte];
workout = new byte [BlockSizeByte];
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches