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

◆ GetBytes()

byte[] Mono.Security.X509.PKCS12.GetBytes ( )
inline

Definition at line 428 of file PKCS12.cs.

429 {
430 ASN1 asn;
431 byte[] value = asn.Value;
432 ASN1 asn2;
433 byte[] value2 = asn2.Value;
434 if (!false)
435 {
436 X509CertificateCollection x509CertificateCollection;
438 long num = 0L;
439 if (num != 0L)
440 {
441 }
442 if (num != 0L)
443 {
444 }
445 X509Certificate x509Certificate;
446 byte[] encodedcert = x509Certificate.m_encodedcert;
447 long num2 = 0L;
448 int num3 = 9;
449 if (num != 0L)
450 {
451 }
452 if (num2 != 0L)
453 {
454 throw new OutOfMemoryException();
455 }
456 if (num3 == 0)
457 {
458 throw new InvalidCastException();
459 }
460 long num4 = 0L;
461 if (num != 0L)
462 {
463 }
464 if (num4 == 0L)
465 {
466 int num5;
467 if (num5 == 0)
468 {
469 if (num != 0L)
470 {
471 }
472 if (num != 0L)
473 {
474 }
475 X509CertificateCollection x509CertificateCollection2;
477 long num6 = 0L;
478 bool flag = enumerator2.MoveNext();
479 byte[] encodedcert2 = enumerator2.Current.m_encodedcert;
480 long num7 = 0L;
481 int num8 = 15;
482 if (enumerator2 == null || num6 != 0L)
483 {
484 }
485 if (num7 != 0L)
486 {
487 throw new OutOfMemoryException();
488 }
489 if (num8 == 0)
490 {
491 }
492 long num9 = 0L;
493 if (num6 != 0L)
494 {
495 }
496 if (num9 == 0L)
497 {
498 if (num6 != 0L)
499 {
500 }
501 if (num6 != 0L)
502 {
503 }
504 long num10 = 0L;
505 int num11 = 19;
506 if (num10 == 0L)
507 {
508 if (num11 != 0)
509 {
510 goto IL_019F;
511 }
512 long num12 = 0L;
513 int num13 = 22;
514 if (num12 != 0L)
515 {
516 goto IL_020B;
517 }
518 if (num13 != 0)
519 {
520 goto IL_019F;
521 }
522 long num14 = 0L;
523 int num15 = 26;
524 if (num14 == 0L)
525 {
526 if (num15 != 0)
527 {
528 goto IL_019F;
529 }
530 if ("UI.SpawnPoint" != null)
531 {
532 PKCS7.ContentInfo contentInfo;
533 ASN1 asn3 = contentInfo.GetASN1();
534 ASN1 asn4 = asn3.Add(asn3);
535 }
536 long num16 = 0L;
537 int num17 = 31;
538 if (num16 == 0L)
539 {
540 if (num17 != 0)
541 {
542 goto IL_019F;
543 }
544 ASN1 asn6;
545 ASN1 asn5 = asn6.Add(asn6);
546 long num18 = 0L;
547 int num19 = 35;
548 if (num18 == 0L)
549 {
550 if (num19 != 0)
551 {
552 goto IL_019F;
553 }
555 ASN1 asn7 = contentInfo2.GetASN1();
556 ASN1 asn8 = asn7.Add(asn7);
557 if ("1.2.840.113549.1.7.1" != null)
558 {
560 ASN1 asn9;
561 byte[] value3 = asn9.Value;
562 ASN1 asn10 = ASN1Convert.FromOid("1.3.14.3.2.26");
563 }
564 ASN1 asn11;
565 if (asn11 != null)
566 {
567 goto IL_019F;
568 }
569 goto IL_019F;
570 }
571 }
572 }
573 }
574 throw new OutOfMemoryException();
575 }
576 throw new OutOfMemoryException();
577 }
578 IL_019F:
579 long num20 = 0L;
580 long num21 = 0L;
581 if (num20 != 0L)
582 {
583 long value4 = num20.m_value;
584 if (num20 != 0L)
585 {
586 throw new OutOfMemoryException();
587 }
588 long num22 = 0L;
589 long num23;
590 if (num23 != 0L)
591 {
592 long value5 = num23.m_value;
593 }
594 if (num22 != 0L)
595 {
596 throw new OutOfMemoryException();
597 }
598 }
599 else
600 {
601 if (num21 != 0L)
602 {
603 throw new OutOfMemoryException();
604 }
605 long num23 = 0L;
606 long num24;
607 if (num24 != 0L)
608 {
609 long value6 = num24.m_value;
610 }
611 if (num23 != 0L)
612 {
613 throw new OutOfMemoryException();
614 }
615 }
616 throw new OutOfMemoryException();
617 }
618 throw new OutOfMemoryException();
619 }
620 IL_020B:
621 throw new OutOfMemoryException();
622 }
class f__AnonymousType0<< Count > j__TPar
const string x509Certificate
Definition PKCS12.cs:1216

References Mono.Security.ASN1.Add(), System.Security.Cryptography.RandomNumberGenerator.Create(), Mono.Security.ASN1Convert.FromOid(), Mono.Security.PKCS7.ContentInfo.GetASN1(), j__TPar, System.L, Mono.Security.X509.X509CertificateCollection.X509CertificateEnumerator.MoveNext(), Mono.Security.ASN1.Value, System.value, and Mono.Security.X509.PKCS12.x509Certificate.

Referenced by Mono.Security.X509.PKCS12.SaveToFile().