oh dear
This commit is contained in:
+325
@@ -0,0 +1,325 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F1B RID: 7963
|
||||
[Token(Token = "0x2001F1B")]
|
||||
public class AuthEnvelopedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C93A RID: 51514 RVA: 0x002E166C File Offset: 0x002DF86C
|
||||
[Token(Token = "0x600C93A")]
|
||||
[Address(RVA = "0x2AD1920", Offset = "0x2AD0720", VA = "0x182AD1920")]
|
||||
public AuthEnvelopedData(OriginatorInfo originatorInfo, Asn1Set recipientInfos, EncryptedContentInfo authEncryptedContentInfo, Asn1Set authAttrs, Asn1OctetString mac, Asn1Set unauthAttrs)
|
||||
{
|
||||
int num;
|
||||
DerInteger derInteger = new DerInteger(num);
|
||||
num = 0;
|
||||
this.authAttrs = 0;
|
||||
this.mac = 0;
|
||||
this.version = derInteger;
|
||||
this.recipientInfos = recipientInfos;
|
||||
this.authEncryptedContentInfo = authEncryptedContentInfo;
|
||||
this.unauthAttrs = 0;
|
||||
this.originatorInfo = originatorInfo;
|
||||
}
|
||||
|
||||
// Token: 0x0600C93B RID: 51515 RVA: 0x002E16BC File Offset: 0x002DF8BC
|
||||
[Token(Token = "0x600C93B")]
|
||||
[Address(RVA = "0x2AD19D0", Offset = "0x2AD07D0", VA = "0x182AD19D0")]
|
||||
private AuthEnvelopedData(Asn1Sequence seq)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
if (parser != 0)
|
||||
{
|
||||
this.version = parser;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
if (parser2 != 0 && parser2 != 0)
|
||||
{
|
||||
if (parser2 == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
Asn1Sequence asn1Sequence;
|
||||
OriginatorInfo instance = OriginatorInfo.GetInstance(asn1Sequence);
|
||||
this.originatorInfo = instance;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
}
|
||||
Asn1Set asn1Set;
|
||||
this.recipientInfos = asn1Set;
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
EncryptedContentInfo encryptedContentInfo;
|
||||
this.authEncryptedContentInfo = encryptedContentInfo;
|
||||
Asn1SequenceParser parser5 = seq.Parser;
|
||||
if (parser5 != 0 && parser5 != 0)
|
||||
{
|
||||
if (parser5 == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
Asn1Set asn1Set2;
|
||||
this.authAttrs = asn1Set2;
|
||||
Asn1SequenceParser parser6 = seq.Parser;
|
||||
}
|
||||
Asn1OctetString asn1OctetString;
|
||||
this.mac = asn1OctetString;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable <= 1)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Asn1SequenceParser parser7 = seq.Parser;
|
||||
if (parser7 == 0 || parser7 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Asn1Set asn1Set3;
|
||||
this.unauthAttrs = asn1Set3;
|
||||
}
|
||||
|
||||
// Token: 0x0600C93C RID: 51516 RVA: 0x002E1794 File Offset: 0x002DF994
|
||||
[Token(Token = "0x600C93C")]
|
||||
[Address(RVA = "0x2AD12B0", Offset = "0x2AD00B0", VA = "0x182AD12B0")]
|
||||
public static AuthEnvelopedData GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return AuthEnvelopedData.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600C93D RID: 51517 RVA: 0x002E17B0 File Offset: 0x002DF9B0
|
||||
[Token(Token = "0x600C93D")]
|
||||
[Address(RVA = "0x2AD12D0", Offset = "0x2AD00D0", VA = "0x182AD12D0")]
|
||||
public static AuthEnvelopedData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C93D)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.AuthEnvelopedData BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.AuthEnvelopedData::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_3F, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid AuthEnvelopedData: "), ldloc:string(var_6_2C))))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x17001F9B RID: 8091
|
||||
// (get) Token: 0x0600C93E RID: 51518 RVA: 0x002E1800 File Offset: 0x002DFA00
|
||||
[Token(Token = "0x17001F9B")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600C93E")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F9C RID: 8092
|
||||
// (get) Token: 0x0600C93F RID: 51519 RVA: 0x002E1814 File Offset: 0x002DFA14
|
||||
[Token(Token = "0x17001F9C")]
|
||||
public OriginatorInfo OriginatorInfo
|
||||
{
|
||||
[Token(Token = "0x600C93F")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.originatorInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F9D RID: 8093
|
||||
// (get) Token: 0x0600C940 RID: 51520 RVA: 0x002E1828 File Offset: 0x002DFA28
|
||||
[Token(Token = "0x17001F9D")]
|
||||
public Asn1Set RecipientInfos
|
||||
{
|
||||
[Token(Token = "0x600C940")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.recipientInfos;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F9E RID: 8094
|
||||
// (get) Token: 0x0600C941 RID: 51521 RVA: 0x002E183C File Offset: 0x002DFA3C
|
||||
[Token(Token = "0x17001F9E")]
|
||||
public EncryptedContentInfo AuthEncryptedContentInfo
|
||||
{
|
||||
[Token(Token = "0x600C941")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
||||
get
|
||||
{
|
||||
return this.authEncryptedContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F9F RID: 8095
|
||||
// (get) Token: 0x0600C942 RID: 51522 RVA: 0x002E1850 File Offset: 0x002DFA50
|
||||
[Token(Token = "0x17001F9F")]
|
||||
public Asn1Set AuthAttrs
|
||||
{
|
||||
[Token(Token = "0x600C942")]
|
||||
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")]
|
||||
get
|
||||
{
|
||||
return this.authAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FA0 RID: 8096
|
||||
// (get) Token: 0x0600C943 RID: 51523 RVA: 0x002E1864 File Offset: 0x002DFA64
|
||||
[Token(Token = "0x17001FA0")]
|
||||
public Asn1OctetString Mac
|
||||
{
|
||||
[Token(Token = "0x600C943")]
|
||||
[Address(RVA = "0x3F63D0", Offset = "0x3F51D0", VA = "0x1803F63D0")]
|
||||
get
|
||||
{
|
||||
return this.mac;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FA1 RID: 8097
|
||||
// (get) Token: 0x0600C944 RID: 51524 RVA: 0x002E1878 File Offset: 0x002DFA78
|
||||
[Token(Token = "0x17001FA1")]
|
||||
public Asn1Set UnauthAttrs
|
||||
{
|
||||
[Token(Token = "0x600C944")]
|
||||
[Address(RVA = "0x408890", Offset = "0x407690", VA = "0x180408890")]
|
||||
get
|
||||
{
|
||||
return this.unauthAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C945 RID: 51525 RVA: 0x002E188C File Offset: 0x002DFA8C
|
||||
[Token(Token = "0x600C945")]
|
||||
[Address(RVA = "0x2AD14C0", Offset = "0x2AD02C0", VA = "0x182AD14C0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.originatorInfo != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
OriginatorInfo originatorInfo = this.originatorInfo;
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, originatorInfo);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[2];
|
||||
Asn1Set asn1Set = this.recipientInfos;
|
||||
if (asn1Set != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = asn1Set;
|
||||
EncryptedContentInfo encryptedContentInfo = this.authEncryptedContentInfo;
|
||||
if (encryptedContentInfo != 0)
|
||||
{
|
||||
}
|
||||
array3[1] = encryptedContentInfo;
|
||||
asn1EncodableVector.Add(array3);
|
||||
if (this.authAttrs != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array4 = new Asn1Encodable[1];
|
||||
Asn1Set asn1Set2 = this.authAttrs;
|
||||
int num3;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num3 != 0, 1, asn1Set2);
|
||||
num3 = 0;
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array4[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array4);
|
||||
}
|
||||
Asn1Encodable[] array5 = new Asn1Encodable[1];
|
||||
Asn1OctetString asn1OctetString = this.mac;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array5[0] = asn1OctetString;
|
||||
asn1EncodableVector.Add(array5);
|
||||
if (this.unauthAttrs != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array6 = new Asn1Encodable[1];
|
||||
Asn1Set asn1Set3 = this.unauthAttrs;
|
||||
int num4;
|
||||
DerTaggedObject derTaggedObject3 = new DerTaggedObject(num4 != 0, 2, asn1Set3);
|
||||
num4 = 0;
|
||||
if (derTaggedObject3 != 0)
|
||||
{
|
||||
}
|
||||
array6[0] = derTaggedObject3;
|
||||
asn1EncodableVector.Add(array6);
|
||||
}
|
||||
BerSequence berSequence = new BerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04008052 RID: 32850
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008052")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04008053 RID: 32851
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008053")]
|
||||
private OriginatorInfo originatorInfo;
|
||||
|
||||
// Token: 0x04008054 RID: 32852
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008054")]
|
||||
private Asn1Set recipientInfos;
|
||||
|
||||
// Token: 0x04008055 RID: 32853
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008055")]
|
||||
private EncryptedContentInfo authEncryptedContentInfo;
|
||||
|
||||
// Token: 0x04008056 RID: 32854
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4008056")]
|
||||
private Asn1Set authAttrs;
|
||||
|
||||
// Token: 0x04008057 RID: 32855
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4008057")]
|
||||
private Asn1OctetString mac;
|
||||
|
||||
// Token: 0x04008058 RID: 32856
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4008058")]
|
||||
private Asn1Set unauthAttrs;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user