2 // CorlibExtras.cs: additional stuff not provided by autogenerated code
5 // Sebastien Pouliot (sebastien@xamarun.com)
7 // Copyright (C) 2012 Xamarin Inc. All rights reserved.
10 namespace System.Security.Cryptography {
12 // required to ensure compatibility with MS implementation
13 public sealed partial class RC2CryptoServiceProvider : RC2 {
15 public override int EffectiveKeySize {
16 get { return base.EffectiveKeySize; }
18 if (value != KeySizeValue)
19 throw new CryptographicUnexpectedOperationException ("Effective key size must match key size for compatibility");
20 base.EffectiveKeySize = value;