// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+#if !MOONLIGHT
+
using System.Globalization;
using System.Runtime.InteropServices;
// a. IETF RFC2286: A Description of the RC2(r) Encryption Algorithm
// http://www.ietf.org/rfc/rfc2268.txt
-#if NET_2_0
[ComVisible (true)]
-#endif
public sealed class RC2CryptoServiceProvider : RC2 {
-
private bool _useSalt;
public RC2CryptoServiceProvider ()
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;
{
KeyValue = KeyBuilder.Key (KeySizeValue >> 3);
}
-#if NET_2_0
[MonoTODO ("Use salt in algorithm")]
[ComVisible (false)]
public bool UseSalt {
get { return _useSalt; }
set { _useSalt = value; }
}
-#endif
}
internal class RC2Transform : SymmetricTransform {
};
}
}
+
+#endif
+