Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Rijndael.cs
Go to the documentation of this file.
5
7
8[Obsolete("The Rijndael and RijndaelManaged types are obsolete. Use Aes instead.", DiagnosticId = "SYSLIB0022", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
9[EditorBrowsable(EditorBrowsableState.Never)]
10[UnsupportedOSPlatform("browser")]
11public abstract class Rijndael : SymmetricAlgorithm
12{
13 private static readonly KeySizes[] s_legalBlockSizes = new KeySizes[1]
14 {
15 new KeySizes(128, 256, 64)
16 };
17
18 private static readonly KeySizes[] s_legalKeySizes = new KeySizes[1]
19 {
20 new KeySizes(128, 256, 64)
21 };
22
23 public new static Rijndael Create()
24 {
25 return new RijndaelImplementation();
26 }
27
28 [RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")]
29 public new static Rijndael? Create(string algName)
30 {
31 return (Rijndael)CryptoConfig.CreateFromName(algName);
32 }
33
34 protected Rijndael()
35 {
36 LegalBlockSizesValue = s_legalBlockSizes.CloneKeySizesArray();
37 LegalKeySizesValue = s_legalKeySizes.CloneKeySizesArray();
38 KeySizeValue = 256;
39 BlockSizeValue = 128;
41 }
42}
static ? object CreateFromName(string name, params object?[]? args)
static readonly KeySizes[] s_legalBlockSizes
Definition Rijndael.cs:13
static readonly KeySizes[] s_legalKeySizes
Definition Rijndael.cs:18
static new? Rijndael Create(string algName)
Definition Rijndael.cs:29
static new Rijndael Create()
Definition Rijndael.cs:23