* DES.cs: Fixed FeedbackSizeValue to 8.
* RC2.cs: Fixed FeedbackSizeValue to 8.
* RC2CryptoServiceProvider.cs: When key size is different from
effective key size we throw CryptographicUnexpectedOperationException.
* TripleDES.cs: Fixed FeedbackSizeValue to 8.
svn path=/trunk/mcs/; revision=30846
+2004-07-07 Sebastien Pouliot <sebastien@ximian.com>
+
+ * DES.cs: Fixed FeedbackSizeValue to 8.
+ * RC2.cs: Fixed FeedbackSizeValue to 8.
+ * RC2CryptoServiceProvider.cs: When key size is different from
+ effective key size we throw CryptographicUnexpectedOperationException.
+ * TripleDES.cs: Fixed FeedbackSizeValue to 8.
+
2004-07-07 Sebastien Pouliot <sebastien@ximian.com>
* CryptoAPITransform.cs: Added the new Reset method for NET_2_0. This
// Sebastien Pouliot <sebastien@ximian.com>
//
// Portions (C) 2002 Motus Technologies Inc. (http://www.motus.com)
-// (C) 2004 Novell (http://www.novell.com)
-//
-
-//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
{
KeySizeValue = 64;
BlockSizeValue = 64;
- FeedbackSizeValue = 64;
+ FeedbackSizeValue = 8;
LegalKeySizesValue = new KeySizes[1];
LegalKeySizesValue[0] = new KeySizes(64, 64, 0);
// Authors:
// Andrew Birkett (andy@nobugs.org)
// Sebastien Pouliot (sebastien@ximian.com)
-//
-// (C) 2004 Novell (http://www.novell.com)
-//
-
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
//
{
KeySizeValue = 128;
BlockSizeValue = 64;
- FeedbackSizeValue = 64;
+ FeedbackSizeValue = 8;
// The RFC allows keys of 1 to 128 bytes, but MS impl only supports
// 40 to 128 bits, sigh.
get { return base.EffectiveKeySize; }
set {
if (value != KeySizeValue) {
+#if NET_1_1
+ throw new CryptographicUnexpectedOperationException (
+#else
throw new CryptographicException (
+#endif
Locale.GetText ("Effective key size must match key size for compatibility"));
}
base.EffectiveKeySize = value;
// Sebastien Pouliot <sebastien@ximian.com>
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
-// (C) 2004 Novell (http://www.novell.com)
-//
-
-//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// from SymmetricAlgorithm
KeySizeValue = 192;
BlockSizeValue = 64;
- FeedbackSizeValue = 64;
+ FeedbackSizeValue = 8;
LegalKeySizesValue = new KeySizes [1];
LegalKeySizesValue [0] = new KeySizes (128, 192, 64);