Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros
TripleDESCryptoServiceProvider.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[EditorBrowsable(EditorBrowsableState.Never)]
9{
10 private readonly TripleDES _impl;
11
12 public override int FeedbackSize
13 {
14 get
15 {
16 return _impl.FeedbackSize;
17 }
18 set
19 {
20 _impl.FeedbackSize = value;
21 }
22 }
23
24 public override int BlockSize
25 {
26 get
27 {
28 return _impl.BlockSize;
29 }
30 set
31 {
32 _impl.BlockSize = value;
33 }
34 }
35
36 public override byte[] IV
37 {
38 get
39 {
40 return _impl.IV;
41 }
42 set
43 {
44 _impl.IV = value;
45 }
46 }
47
48 public override byte[] Key
49 {
50 get
51 {
52 return _impl.Key;
53 }
54 set
55 {
56 _impl.Key = value;
57 }
58 }
59
60 public override int KeySize
61 {
62 get
63 {
64 return _impl.KeySize;
65 }
66 set
67 {
68 _impl.KeySize = value;
69 }
70 }
71
72 public override CipherMode Mode
73 {
74 get
75 {
76 return _impl.Mode;
77 }
78 set
79 {
80 _impl.Mode = value;
81 }
82 }
83
84 public override PaddingMode Padding
85 {
86 get
87 {
88 return _impl.Padding;
89 }
90 set
91 {
92 _impl.Padding = value;
93 }
94 }
95
97
99
104
106 {
107 return _impl.CreateEncryptor();
108 }
109
111 {
112 return _impl.CreateDecryptor();
113 }
114
115 public override void GenerateIV()
116 {
118 }
119
120 public override void GenerateKey()
121 {
123 }
124
125 public override ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[]? rgbIV)
126 {
128 }
129
130 public override ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[]? rgbIV)
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}
static byte[] TrimLargeIV(byte[] currentIV, int blockSizeInBits)
Definition Helpers.cs:27
override ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[]? rgbIV)
override ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[]? rgbIV)
static new TripleDES Create()
Definition TripleDES.cs:59