Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
RijndaelManaged.cs
Go to the documentation of this file.
3
5
6[Obsolete("The Rijndael and RijndaelManaged types are obsolete. Use Aes instead.", DiagnosticId = "SYSLIB0022", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
7[EditorBrowsable(EditorBrowsableState.Never)]
8[UnsupportedOSPlatform("browser")]
9public sealed class RijndaelManaged : Rijndael
10{
11 private readonly Aes _impl;
12
13 public override int BlockSize
14 {
15 get
16 {
17 return _impl.BlockSize;
18 }
19 set
20 {
21 switch (value)
22 {
23 case 192:
24 case 256:
26 default:
28 case 128:
29 break;
30 }
31 }
32 }
33
34 public override int FeedbackSize
35 {
36 get
37 {
38 return _impl.FeedbackSize;
39 }
40 set
41 {
42 _impl.FeedbackSize = value;
43 }
44 }
45
46 public override byte[] IV
47 {
48 get
49 {
50 return _impl.IV;
51 }
52 set
53 {
54 _impl.IV = value;
55 }
56 }
57
58 public override byte[] Key
59 {
60 get
61 {
62 return _impl.Key;
63 }
64 set
65 {
66 _impl.Key = value;
67 }
68 }
69
70 public override int KeySize
71 {
72 get
73 {
74 return _impl.KeySize;
75 }
76 set
77 {
78 _impl.KeySize = value;
79 }
80 }
81
82 public override CipherMode Mode
83 {
84 get
85 {
86 return _impl.Mode;
87 }
88 set
89 {
90 _impl.Mode = value;
91 }
92 }
93
94 public override PaddingMode Padding
95 {
96 get
97 {
98 return _impl.Padding;
99 }
100 set
101 {
102 _impl.Padding = value;
103 }
104 }
105
107
109 {
111 {
112 new KeySizes(128, 128, 0)
113 };
114 _impl = Aes.Create();
115 _impl.FeedbackSize = 128;
116 }
117
119 {
120 return _impl.CreateEncryptor();
121 }
122
123 public override ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[]? rgbIV)
124 {
125 return _impl.CreateEncryptor(rgbKey, rgbIV);
126 }
127
129 {
130 return _impl.CreateDecryptor();
131 }
132
133 public override ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[]? rgbIV)
134 {
135 return _impl.CreateDecryptor(rgbKey, rgbIV);
136 }
137
138 public override void GenerateIV()
139 {
141 }
142
143 public override void GenerateKey()
144 {
146 }
147
148 protected override void Dispose(bool disposing)
149 {
150 if (disposing)
151 {
152 _impl.Dispose();
153 base.Dispose(disposing);
154 }
155 }
156}
static string Cryptography_Rijndael_BlockSize
Definition SR.cs:136
Definition SR.cs:7
static new Aes Create()
Definition Aes.cs:30
override ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[]? rgbIV)
override ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[]? rgbIV)