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

◆ GetAsymmetricAlgorithm()

AsymmetricAlgorithm Mono.Security.X509.PKCS12.GetAsymmetricAlgorithm ( IDictionary attrs)
inline

Definition at line 813 of file PKCS12.cs.

814 {
816 if (safeBags != null)
817 {
818 }
819 object[] items = safeBags._items;
820 long num = 0L;
821 ASN1 asn;
822 if (asn.elist != null)
823 {
824 }
825 ASN1 asn2 = asn[(int)num];
826 long num2 = 0L;
827 string text = ASN1Convert.ToOid(asn2[(int)num2]);
828 if (attrs != null)
829 {
830 int num3 = 1;
831 ASN1 asn3 = asn2[num3];
832 if (asn3.elist != null)
833 {
834 }
835 long num4 = 0L;
836 if (asn3.elist != null)
837 {
838 }
839 ASN1 asn4 = asn3[(int)num4];
840 if (attrs == null || attrs == null)
841 {
842 }
843 byte[] value = asn4.Value;
844 if (asn3.elist != null)
845 {
846 }
847 }
848 if (asn.elist != null)
849 {
850 }
851 ASN1 asn5;
852 byte[] value2 = asn5.Value;
853 byte[] array;
855 long num5 = 0L;
856 if (rsa != null)
857 {
858 }
859 if (num5 == 0L)
860 {
861 int keySizeValue = rsa.KeySizeValue;
862 byte[] array2;
864 long num6 = 0L;
865 long num7 = 0L;
866 Array.Clear(array2, (int)num7, (int)num6);
867 throw new InvalidCastException();
868 }
869 throw new OutOfMemoryException();
870 }
class f__AnonymousType0<< Count > j__TPar
static RSA DecodeRSA(byte[] keypair)
Definition PKCS8.cs:141
void IList. Clear()
Definition Array.cs:99

References System.Collections.ArrayList._items, Mono.Security.X509.PKCS12._safeBags, System.array, System.Array.Clear(), Mono.Security.Cryptography.PKCS8.PrivateKeyInfo.DecodeRSA(), j__TPar, System.Security.Cryptography.AsymmetricAlgorithm.KeySizeValue, System.L, System.text, Mono.Security.ASN1Convert.ToOid(), Mono.Security.ASN1.Value, and System.value.