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
RSAPKCS1SignatureDeformatter.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Runtime.InteropServices
;
3
using
Mono.Security.Cryptography
;
4
5
namespace
System.Security.Cryptography
6
{
7
// Token: 0x02000316 RID: 790
8
[
ComVisible
(
true
)]
9
public
class
RSAPKCS1SignatureDeformatter
:
AsymmetricSignatureDeformatter
10
{
11
// Token: 0x06001AD6 RID: 6870 RVA: 0x00039F00 File Offset: 0x00038100
12
public
RSAPKCS1SignatureDeformatter
()
13
{
14
}
15
16
// Token: 0x06001AD7 RID: 6871 RVA: 0x00039F14 File Offset: 0x00038114
17
public
RSAPKCS1SignatureDeformatter
(
AsymmetricAlgorithm
key
)
18
{
19
}
20
21
// Token: 0x06001AD8 RID: 6872 RVA: 0x00039F28 File Offset: 0x00038128
22
public
override
void
SetHashAlgorithm
(
string
strName
)
23
{
24
while
(
strName
==
null
)
25
{
26
}
27
this.hashName
=
strName
;
28
}
29
30
// Token: 0x06001AD9 RID: 6873 RVA: 0x00039F40 File Offset: 0x00038140
31
public
override
void
SetKey
(
AsymmetricAlgorithm
key
)
32
{
33
while
(
key
==
null
)
34
{
35
}
36
this.rsa
=
key
;
37
}
38
39
// Token: 0x06001ADA RID: 6874 RVA: 0x00039F60 File Offset: 0x00038160
40
public
override
bool
VerifySignature
(
byte
[]
rgbHash
,
byte
[]
rgbSignature
)
41
{
42
RSA
rsa
;
43
string
text
;
44
do
45
{
46
rsa
= this.
rsa
;
47
if
(rsa ==
null
)
48
{
49
goto
IL_0024
;
50
}
51
text
= this.
hashName
;
52
if
(text ==
null
)
53
{
54
goto
IL_002A
;
55
}
56
if
(
rgbHash
==
null
)
57
{
58
goto
IL_0035
;
59
}
60
}
61
while
(
rgbSignature
==
null
);
62
return
PKCS1
.
Verify_v15
(
rsa
,
text
,
rgbHash
,
rgbSignature
);
63
IL_0024
:
64
return
"No public key available."
!=
null
;
65
IL_002A
:
66
string
text2 =
Locale
.
GetText
(
"Missing hash algorithm."
);
67
IL_0035
:
68
return
"rgbHash"
!=
null
;
69
}
70
71
// Token: 0x04000DAA RID: 3498
72
private
RSA
rsa
;
73
74
// Token: 0x04000DAB RID: 3499
75
private
string
hashName
;
76
}
77
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Locale.GetText
static string GetText(string msg)
Definition
Locale.cs:8
Locale
Definition
Locale.cs:6
Mono.Security.Cryptography.PKCS1.Verify_v15
static bool Verify_v15(RSA rsa, HashAlgorithm hash, byte[] hashValue, byte[] signature, bool tryNonStandardEncoding)
Definition
PKCS1.cs:55
Mono.Security.Cryptography.PKCS1
Definition
PKCS1.cs:9
System.Security.Cryptography.AsymmetricAlgorithm
Definition
AsymmetricAlgorithm.cs:10
System.Security.Cryptography.AsymmetricSignatureDeformatter
Definition
AsymmetricSignatureDeformatter.cs:9
System.Security.Cryptography.RSAPKCS1SignatureDeformatter.RSAPKCS1SignatureDeformatter
RSAPKCS1SignatureDeformatter()
Definition
RSAPKCS1SignatureDeformatter.cs:12
System.Security.Cryptography.RSAPKCS1SignatureDeformatter.SetHashAlgorithm
override void SetHashAlgorithm(string strName)
Definition
RSAPKCS1SignatureDeformatter.cs:22
System.Security.Cryptography.RSAPKCS1SignatureDeformatter.hashName
string hashName
Definition
RSAPKCS1SignatureDeformatter.cs:75
System.Security.Cryptography.RSAPKCS1SignatureDeformatter.SetKey
override void SetKey(AsymmetricAlgorithm key)
Definition
RSAPKCS1SignatureDeformatter.cs:31
System.Security.Cryptography.RSAPKCS1SignatureDeformatter.RSAPKCS1SignatureDeformatter
RSAPKCS1SignatureDeformatter(AsymmetricAlgorithm key)
Definition
RSAPKCS1SignatureDeformatter.cs:17
System.Security.Cryptography.RSAPKCS1SignatureDeformatter.VerifySignature
override bool VerifySignature(byte[] rgbHash, byte[] rgbSignature)
Definition
RSAPKCS1SignatureDeformatter.cs:40
System.Security.Cryptography.RSAPKCS1SignatureDeformatter.rsa
RSA rsa
Definition
RSAPKCS1SignatureDeformatter.cs:72
System.Security.Cryptography.RSAPKCS1SignatureDeformatter
Definition
RSAPKCS1SignatureDeformatter.cs:10
System.Security.Cryptography.RSA
Definition
RSA.cs:11
Mono.Security.Cryptography
Definition
ARC4Managed.cs:6
System.Runtime.InteropServices
Definition
_Activator.cs:4
System.Security.Cryptography
Definition
Aes.cs:5
System.ExceptionArgument.text
@ text
System.ExceptionArgument.key
@ key
System
Definition
__ComObject.cs:4
source
mscorlib
System
Security
Cryptography
RSAPKCS1SignatureDeformatter.cs
Generated by
1.10.0