* SymmetricTransform.cs: Fixed a division by zero if someone changes
the feedback value to 0.
* SHA224Managed.cs: Fixed warning about unused private constant.
svn path=/trunk/mcs/; revision=43210
+2005-04-18 Sebastien Pouliot <sebastien@ximian.com>
+
+ * 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 <sebastien@ximian.com>
* SymmetricTransform.cs: Fixed a padding bug affecting that can occurs
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.
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];