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