326 lines
11 KiB
C#
326 lines
11 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
|
{
|
|
// Token: 0x02001FFB RID: 8187
|
|
[Token(Token = "0x2001FFB")]
|
|
public class AuthEnvelopedData : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CD08 RID: 52488 RVA: 0x002E9E60 File Offset: 0x002E8060
|
|
[Token(Token = "0x600CD08")]
|
|
[Address(RVA = "0x2FDC630", Offset = "0x2FDB630", VA = "0x182FDC630")]
|
|
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: 0x0600CD09 RID: 52489 RVA: 0x002E9EB0 File Offset: 0x002E80B0
|
|
[Token(Token = "0x600CD09")]
|
|
[Address(RVA = "0x2FDC6E0", Offset = "0x2FDB6E0", VA = "0x182FDC6E0")]
|
|
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: 0x0600CD0A RID: 52490 RVA: 0x002E9F88 File Offset: 0x002E8188
|
|
[Token(Token = "0x600CD0A")]
|
|
[Address(RVA = "0x2FDBFC0", Offset = "0x2FDAFC0", VA = "0x182FDBFC0")]
|
|
public static AuthEnvelopedData GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
|
{
|
|
return AuthEnvelopedData.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
|
}
|
|
|
|
// Token: 0x0600CD0B RID: 52491 RVA: 0x002E9FA4 File Offset: 0x002E81A4
|
|
[Token(Token = "0x600CD0B")]
|
|
[Address(RVA = "0x2FDBFE0", Offset = "0x2FDAFE0", VA = "0x182FDBFE0")]
|
|
public static AuthEnvelopedData GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CD0B)
|
|
|
|
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: 0x17002038 RID: 8248
|
|
// (get) Token: 0x0600CD0C RID: 52492 RVA: 0x002E9FF4 File Offset: 0x002E81F4
|
|
[Token(Token = "0x17002038")]
|
|
public DerInteger Version
|
|
{
|
|
[Token(Token = "0x600CD0C")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
get
|
|
{
|
|
return this.version;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17002039 RID: 8249
|
|
// (get) Token: 0x0600CD0D RID: 52493 RVA: 0x002EA008 File Offset: 0x002E8208
|
|
[Token(Token = "0x17002039")]
|
|
public OriginatorInfo OriginatorInfo
|
|
{
|
|
[Token(Token = "0x600CD0D")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
|
get
|
|
{
|
|
return this.originatorInfo;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700203A RID: 8250
|
|
// (get) Token: 0x0600CD0E RID: 52494 RVA: 0x002EA01C File Offset: 0x002E821C
|
|
[Token(Token = "0x1700203A")]
|
|
public Asn1Set RecipientInfos
|
|
{
|
|
[Token(Token = "0x600CD0E")]
|
|
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
|
get
|
|
{
|
|
return this.recipientInfos;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700203B RID: 8251
|
|
// (get) Token: 0x0600CD0F RID: 52495 RVA: 0x002EA030 File Offset: 0x002E8230
|
|
[Token(Token = "0x1700203B")]
|
|
public EncryptedContentInfo AuthEncryptedContentInfo
|
|
{
|
|
[Token(Token = "0x600CD0F")]
|
|
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
|
get
|
|
{
|
|
return this.authEncryptedContentInfo;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700203C RID: 8252
|
|
// (get) Token: 0x0600CD10 RID: 52496 RVA: 0x002EA044 File Offset: 0x002E8244
|
|
[Token(Token = "0x1700203C")]
|
|
public Asn1Set AuthAttrs
|
|
{
|
|
[Token(Token = "0x600CD10")]
|
|
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
|
|
get
|
|
{
|
|
return this.authAttrs;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700203D RID: 8253
|
|
// (get) Token: 0x0600CD11 RID: 52497 RVA: 0x002EA058 File Offset: 0x002E8258
|
|
[Token(Token = "0x1700203D")]
|
|
public Asn1OctetString Mac
|
|
{
|
|
[Token(Token = "0x600CD11")]
|
|
[Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0")]
|
|
get
|
|
{
|
|
return this.mac;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700203E RID: 8254
|
|
// (get) Token: 0x0600CD12 RID: 52498 RVA: 0x002EA06C File Offset: 0x002E826C
|
|
[Token(Token = "0x1700203E")]
|
|
public Asn1Set UnauthAttrs
|
|
{
|
|
[Token(Token = "0x600CD12")]
|
|
[Address(RVA = "0x417680", Offset = "0x416680", VA = "0x180417680")]
|
|
get
|
|
{
|
|
return this.unauthAttrs;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CD13 RID: 52499 RVA: 0x002EA080 File Offset: 0x002E8280
|
|
[Token(Token = "0x600CD13")]
|
|
[Address(RVA = "0x2FDC1D0", Offset = "0x2FDB1D0", VA = "0x182FDC1D0", 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: 0x0400820B RID: 33291
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400820B")]
|
|
private DerInteger version;
|
|
|
|
// Token: 0x0400820C RID: 33292
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400820C")]
|
|
private OriginatorInfo originatorInfo;
|
|
|
|
// Token: 0x0400820D RID: 33293
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400820D")]
|
|
private Asn1Set recipientInfos;
|
|
|
|
// Token: 0x0400820E RID: 33294
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400820E")]
|
|
private EncryptedContentInfo authEncryptedContentInfo;
|
|
|
|
// Token: 0x0400820F RID: 33295
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x400820F")]
|
|
private Asn1Set authAttrs;
|
|
|
|
// Token: 0x04008210 RID: 33296
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4008210")]
|
|
private Asn1OctetString mac;
|
|
|
|
// Token: 0x04008211 RID: 33297
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4008211")]
|
|
private Asn1Set unauthAttrs;
|
|
}
|
|
}
|