projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use MOONLIGHT symbol
[mono.git]
/
mcs
/
class
/
corlib
/
System.Security.Cryptography
/
RC2CryptoServiceProvider.cs
diff --git
a/mcs/class/corlib/System.Security.Cryptography/RC2CryptoServiceProvider.cs
b/mcs/class/corlib/System.Security.Cryptography/RC2CryptoServiceProvider.cs
index 4986a248964ad1fe994ae4fc6ba6a452b724b50d..6a5d8461ac051421ff8ee69dedae29570ce6e097 100644
(file)
--- a/
mcs/class/corlib/System.Security.Cryptography/RC2CryptoServiceProvider.cs
+++ b/
mcs/class/corlib/System.Security.Cryptography/RC2CryptoServiceProvider.cs
@@
-28,6
+28,8
@@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+#if !MOONLIGHT
+
using System.Globalization;
using System.Runtime.InteropServices;
using System.Globalization;
using System.Runtime.InteropServices;
@@
-39,11
+41,8
@@
namespace System.Security.Cryptography {
// a. IETF RFC2286: A Description of the RC2(r) Encryption Algorithm
// http://www.ietf.org/rfc/rfc2268.txt
// a. IETF RFC2286: A Description of the RC2(r) Encryption Algorithm
// http://www.ietf.org/rfc/rfc2268.txt
-#if NET_2_0
[ComVisible (true)]
[ComVisible (true)]
-#endif
public sealed class RC2CryptoServiceProvider : RC2 {
public sealed class RC2CryptoServiceProvider : RC2 {
-
private bool _useSalt;
public RC2CryptoServiceProvider ()
private bool _useSalt;
public RC2CryptoServiceProvider ()
@@
-54,11
+53,7
@@
namespace System.Security.Cryptography {
get { return base.EffectiveKeySize; }
set {
if (value != KeySizeValue) {
get { return base.EffectiveKeySize; }
set {
if (value != KeySizeValue) {
-#if NET_1_1
throw new CryptographicUnexpectedOperationException (
throw new CryptographicUnexpectedOperationException (
-#else
- throw new CryptographicException (
-#endif
Locale.GetText ("Effective key size must match key size for compatibility"));
}
base.EffectiveKeySize = value;
Locale.GetText ("Effective key size must match key size for compatibility"));
}
base.EffectiveKeySize = value;
@@
-84,14
+79,12
@@
namespace System.Security.Cryptography {
{
KeyValue = KeyBuilder.Key (KeySizeValue >> 3);
}
{
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; }
}
[MonoTODO ("Use salt in algorithm")]
[ComVisible (false)]
public bool UseSalt {
get { return _useSalt; }
set { _useSalt = value; }
}
-#endif
}
internal class RC2Transform : SymmetricTransform {
}
internal class RC2Transform : SymmetricTransform {
@@
-319,3
+312,6
@@
namespace System.Security.Cryptography {
};
}
}
};
}
}
+
+#endif
+