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

◆ VerifySignature() [1/2]

override bool System.Security.Cryptography.RSAPKCS1SignatureDeformatter.VerifySignature ( byte[] rgbHash,
byte[] rgbSignature )
inline

Definition at line 40 of file RSAPKCS1SignatureDeformatter.cs.

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);
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 }
class f__AnonymousType0<< Count > j__TPar
static string GetText(string msg)
Definition Locale.cs:8
static bool Verify_v15(RSA rsa, HashAlgorithm hash, byte[] hashValue, byte[] signature, bool tryNonStandardEncoding)
Definition PKCS1.cs:55

References Locale.GetText(), System.Security.Cryptography.RSAPKCS1SignatureDeformatter.hashName, j__TPar, System.Security.Cryptography.RSAPKCS1SignatureDeformatter.rsa, System.text, and Mono.Security.Cryptography.PKCS1.Verify_v15().