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

◆ VerifyCounterSignature()

bool Mono.Security.Authenticode.AuthenticodeDeformatter.VerifyCounterSignature ( PKCS7::SignerInfo cs,
byte[] signature )
inlineprivate

Definition at line 165 of file AuthenticodeDeformatter.cs.

166 {
167 byte version = cs.version;
168 ArrayList authenticatedAttributes = cs.authenticatedAttributes;
169 if (cs.authenticatedAttributes != null)
170 {
171 }
172 ASN1 asn;
173 string text = ASN1Convert.ToOid(asn);
174 bool flag = text == "1.2.840.113549.1.9.3";
175 long num = 0L;
176 ASN1 asn2;
177 string text2 = ASN1Convert.ToOid(asn2[(int)num]);
178 bool flag2 = text == "1.2.840.113549.1.9.4";
179 long num2 = 0L;
180 ASN1 asn4;
181 ASN1 asn3 = asn4[(int)num2];
182 bool flag3 = text == "1.2.840.113549.1.9.5";
183 long num3 = 0L;
184 ASN1 asn5;
185 DateTime dateTime = ASN1Convert.ToDateTime(asn5[(int)num3]);
186 ArrayList authenticatedAttributes2 = cs.authenticatedAttributes;
187 long num4 = 0L;
189 if (num4 != 0L)
190 {
191 byte[] array = HashAlgorithm.Create("SHA256").ComputeHash(signature);
192 byte[] signature2 = cs.Signature;
193 authenticatedAttributes3 = cs.authenticatedAttributes;
194 if (authenticatedAttributes3 != null)
195 {
196 }
197 }
198 long num5 = 0L;
199 int num6 = 21;
200 if (authenticatedAttributes3 != null)
201 {
202 }
203 if (num5 == 0L)
204 {
205 while (num6 != 0)
206 {
207 }
208 string issuer = cs.issuer;
209 byte[] serialNumber = cs.SerialNumber;
212 X509Certificate x509Certificate = x509CertificateEnumerator.Current;
213 if (num5 != 0L)
214 {
215 }
216 bool flag5;
217 return flag5;
218 }
219 throw new OutOfMemoryException();
220 }
class f__AnonymousType0<< Count > j__TPar
DateTime IConvertible. ToDateTime(IFormatProvider provider)
Definition DateTime.cs:1275

References System.array, System.Security.Cryptography.HashAlgorithm.ComputeHash(), System.Security.Cryptography.HashAlgorithm.Create(), j__TPar, System.L, Mono.Security.X509.X509CertificateCollection.X509CertificateEnumerator.MoveNext(), System.text, Mono.Security.ASN1Convert.ToDateTime(), and Mono.Security.ASN1Convert.ToOid().