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