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