protected byte[] KeyValue;
protected KeySizes[] LegalBlockSizesValue;
protected KeySizes[] LegalKeySizesValue;
-#if MOONLIGHT
- // Silverlight 2.0 only supports CBC
- internal int FeedbackSizeValue;
- internal CipherMode ModeValue;
- internal PaddingMode PaddingValue;
-#else
protected int FeedbackSizeValue;
protected CipherMode ModeValue;
protected PaddingMode PaddingValue;
-#endif
private bool m_disposed;
protected SymmetricAlgorithm ()
throw new CryptographicException (
Locale.GetText ("feedback size larger than block size"));
}
+ if ((value & 3) != 0) {
+ throw new CryptographicException (
+ Locale.GetText ("feedback size must be a multiple of 8 (bits)"));
+ }
this.FeedbackSizeValue = value;
}
}