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
PKCS1MaskGenerationMethod.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x020002E8 RID: 744
8 [ComVisible(true)]
10 {
11 // Token: 0x060018FA RID: 6394 RVA: 0x00035910 File Offset: 0x00033B10
13 {
14 this.HashNameValue = "SHA1";
15 }
16
17 // Token: 0x170002AF RID: 687
18 // (get) Token: 0x060018FB RID: 6395 RVA: 0x00035930 File Offset: 0x00033B30
19 // (set) Token: 0x060018FC RID: 6396 RVA: 0x00035944 File Offset: 0x00033B44
20 public string HashName
21 {
22 get
23 {
24 return this.HashNameValue;
25 }
26 set
27 {
29 if (value == null)
30 {
31 this.HashNameValue = "SHA1";
32 }
33 }
34 }
35
36 // Token: 0x060018FD RID: 6397 RVA: 0x00035968 File Offset: 0x00033B68
37 public override byte[] GenerateMask(byte[] rgbSeed, int cbReturn)
38 {
39 return PKCS1.MGF1(HashAlgorithm.Create(this.HashNameValue), rgbSeed, cbReturn);
40 }
41
42 // Token: 0x04000CCE RID: 3278
43 private string HashNameValue;
44 }
45}
class f__AnonymousType0<< Count > j__TPar
static byte[] MGF1(HashAlgorithm hash, byte[] mgfSeed, int maskLen)
Definition PKCS1.cs:215
override byte[] GenerateMask(byte[] rgbSeed, int cbReturn)