2002-10-14 Sebastien Pouliot <spouliot@videotron.ca>
[mono.git] / mcs / class / corlib / System.Security.Cryptography / Rijndael.cs
1 //\r
2 // System.Security.Cryptography.Rijndael.cs\r
3 //\r
4 // Authors: Dan Lewis (dihlewis@yahoo.co.uk)\r
5 //          Andrew Birkett (andy@nobugs.org)\r
6 //\r
7 // (C) 2002\r
8 //\r
9 \r
10 using System;\r
11 \r
12 namespace System.Security.Cryptography {\r
13         \r
14         public abstract class Rijndael : SymmetricAlgorithm {\r
15 \r
16                 public static new Rijndael Create () \r
17                 {\r
18                         return Create ("System.Security.Cryptography.Rijndael");\r
19                 }\r
20 \r
21                 public static new Rijndael Create (string algName) \r
22                 {\r
23                         return (Rijndael) CryptoConfig.CreateFromName (algName);\r
24                 }\r
25                 \r
26                 public Rijndael () \r
27                 {\r
28                         KeySizeValue = 256;\r
29                         BlockSizeValue = 128;\r
30                         FeedbackSizeValue = 128;\r
31         \r
32                         LegalKeySizesValue = new KeySizes[1];\r
33                         LegalKeySizesValue[0] = new KeySizes(128, 256, 64);\r
34 \r
35                         LegalBlockSizesValue = new KeySizes[1];\r
36                         LegalBlockSizesValue[0] = new KeySizes(128, 256, 64);\r
37                 }\r
38         }\r
39 }\r