Author: spouliot
Date: 2005-04-18 08:52:03 -0400 (Mon, 18 Apr 2005)
New Revision: 43210

Modified:
   trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/ChangeLog
   trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/SHA224Managed.cs
   
trunk/mcs/class/Mono.Security/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.
        * SHA224Managed.cs: Fixed warning about unused private constant.



Modified: trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/ChangeLog
===================================================================
--- trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/ChangeLog  
2005-04-18 12:49:21 UTC (rev 43209)
+++ trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/ChangeLog  
2005-04-18 12:52:03 UTC (rev 43210)
@@ -1,3 +1,9 @@
+2005-04-18  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * SymmetricTransform.cs: Fixed a division by zero if someone changes 
+       the feedback value to 0.
+       * SHA224Managed.cs: Fixed warning about unused private constant.
+
 2005-03-30  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * SymmetricTransform.cs: Fixed a padding bug affecting that can occurs

Modified: 
trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/SHA224Managed.cs
===================================================================
--- trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/SHA224Managed.cs   
2005-04-18 12:49:21 UTC (rev 43209)
+++ trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/SHA224Managed.cs   
2005-04-18 12:52:03 UTC (rev 43210)
@@ -36,7 +36,7 @@
        public class SHA224Managed : SHA224 {
 
                private const int BLOCK_SIZE_BYTES =  64;
-               private const int HASH_SIZE_BYTES  =  32;
+
                private uint[] _H;
                private ulong count;
                private byte[] _ProcessingBuffer;   // Used to start data when 
passed less than a block worth.

Modified: 
trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/SymmetricTransform.cs
===================================================================
--- 
trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/SymmetricTransform.cs  
    2005-04-18 12:49:21 UTC (rev 43209)
+++ 
trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/SymmetricTransform.cs  
    2005-04-18 12:52:03 UTC (rev 43210)
@@ -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

Reply via email to