terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
DESCryptoServiceProvider.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x020002D5 RID: 725
7 [ComVisible(true)]
8 public sealed class DESCryptoServiceProvider : DES
9 {
10 // Token: 0x06001870 RID: 6256 RVA: 0x00034398 File Offset: 0x00032598
12 {
13 if (!true)
14 {
15 }
16 base..ctor();
17 if (!true)
18 {
19 }
20 long num = 0L;
21 bool flag = Utils.HasAlgorithm(26113, (int)num);
23 }
24
25 // Token: 0x06001871 RID: 6257 RVA: 0x000343D4 File Offset: 0x000325D4
26 public override ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[] rgbIV)
27 {
28 if (", HasRightShoulderButton=" == null)
29 {
30 }
31 bool flag = DES.IsWeakKey(rgbKey);
32 if (", HasRightShoulderButton=" == null)
33 {
34 }
36 return "Specified key is a known weak key for '{0}' and cannot be used.";
37 }
38
39 // Token: 0x06001872 RID: 6258 RVA: 0x00034410 File Offset: 0x00032610
40 public override ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[] rgbIV)
41 {
42 if (!true)
43 {
44 }
45 bool flag = DES.IsWeakKey(rgbKey);
46 if (!true)
47 {
48 }
50 return "Specified key is a known weak key for '{0}' and cannot be used.";
51 }
52
53 // Token: 0x06001873 RID: 6259 RVA: 0x00034444 File Offset: 0x00032644
54 public override void GenerateKey()
55 {
56 if (!true)
57 {
58 }
60 byte[] keyValue = this.KeyValue;
61 bool flag = DES.IsWeakKey(this.KeyValue);
62 bool flag2 = DES.IsSemiWeakKey(this.KeyValue);
63 }
64
65 // Token: 0x06001874 RID: 6260 RVA: 0x00034480 File Offset: 0x00032680
66 public override void GenerateIV()
67 {
68 if (!true)
69 {
70 }
72 byte[] ivvalue = this.IVValue;
73 }
74 }
75}
class f__AnonymousType0<< Count > j__TPar
override ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[] rgbIV)
override ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[] rgbIV)
static bool IsWeakKey(byte[] rgbKey)
Definition DES.cs:92
static bool IsSemiWeakKey(byte[] rgbKey)
Definition DES.cs:101
static bool HasAlgorithm(int dwCalg, int dwKeySize)
Definition Utils.cs:71
static RNGCryptoServiceProvider StaticRandomNumberGenerator
Definition Utils.cs:18