-//\r
-// System.Security.Cryptography.Rijndael.cs\r
-//\r
-// Authors: Dan Lewis (dihlewis@yahoo.co.uk)\r
-// Andrew Birkett (andy@nobugs.org)\r
-//\r
-// (C) 2002\r
+//
+// System.Security.Cryptography.Rijndael.cs
+//
+// Authors: Dan Lewis (dihlewis@yahoo.co.uk)
+// Andrew Birkett (andy@nobugs.org)
+//
+// (C) 2002
// Copyright (C) 2004-2006 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOONLIGHT
-\r
using System.Runtime.InteropServices;
-\r
-namespace System.Security.Cryptography {\r
+
+namespace System.Security.Cryptography {
// References:
// a. FIPS PUB 197: Advanced Encryption Standard
// http://csrc.nist.gov/publications/fips/fips197/fips-197.pdf
-\r
+
[ComVisible (true)]
- public abstract class Rijndael : SymmetricAlgorithm {\r
-\r
- public static new Rijndael Create () \r
- {\r
+ public abstract class Rijndael : SymmetricAlgorithm {
+
+ public static new Rijndael Create ()
+ {
#if FULL_AOT_RUNTIME
return new System.Security.Cryptography.RijndaelManaged ();
#else
- return Create ("System.Security.Cryptography.Rijndael");\r
+ return Create ("System.Security.Cryptography.Rijndael");
#endif
- }\r
-\r
- public static new Rijndael Create (string algName) \r
- {\r
- return (Rijndael) CryptoConfig.CreateFromName (algName);\r
- }\r
+ }
+
+ public static new Rijndael Create (string algName)
+ {
+ return (Rijndael) CryptoConfig.CreateFromName (algName);
+ }
protected Rijndael ()
- {\r
- KeySizeValue = 256;\r
- BlockSizeValue = 128;\r
- FeedbackSizeValue = 128;\r
- \r
- LegalKeySizesValue = new KeySizes [1];\r
- LegalKeySizesValue [0] = new KeySizes (128, 256, 64);\r
-\r
- LegalBlockSizesValue = new KeySizes [1];\r
- LegalBlockSizesValue [0] = new KeySizes (128, 256, 64);\r
- }\r
- }\r
-}\r
-#endif
+ {
+ KeySizeValue = 256;
+ BlockSizeValue = 128;
+ FeedbackSizeValue = 128;
+
+ LegalKeySizesValue = new KeySizes [1];
+ LegalKeySizesValue [0] = new KeySizes (128, 256, 64);
+ LegalBlockSizesValue = new KeySizes [1];
+ LegalBlockSizesValue [0] = new KeySizes (128, 256, 64);
+ }
+ }
+}