oh dear
This commit is contained in:
@@ -0,0 +1,422 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F5D RID: 8029
|
||||
[Token(Token = "0x2001F5D")]
|
||||
public class PkiHeader : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CB17 RID: 51991 RVA: 0x002E8780 File Offset: 0x002E6980
|
||||
[Token(Token = "0x600CB17")]
|
||||
[Address(RVA = "0x2ADEF90", Offset = "0x2ADDD90", VA = "0x182ADEF90")]
|
||||
private PkiHeader(Asn1Sequence seq)
|
||||
{
|
||||
uint num;
|
||||
Asn1SequenceParser parser4;
|
||||
do
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerInteger derInteger;
|
||||
this.pvno = derInteger;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
GeneralName generalName;
|
||||
this.sender = generalName;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
GeneralName generalName2;
|
||||
this.recipient = generalName2;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (num >= asn1Encodable)
|
||||
{
|
||||
return;
|
||||
}
|
||||
parser4 = seq.Parser;
|
||||
}
|
||||
while (parser4 == 0);
|
||||
if (parser4 > (ulong)8L)
|
||||
{
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
DerGeneralizedTime derGeneralizedTime;
|
||||
this.messageTime = derGeneralizedTime;
|
||||
num += (uint)1;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.protectionAlg = algorithmIdentifier;
|
||||
num += (uint)1;
|
||||
Asn1OctetString asn1OctetString;
|
||||
this.senderKID = asn1OctetString;
|
||||
num += (uint)1;
|
||||
Asn1OctetString asn1OctetString2;
|
||||
this.recipKID = asn1OctetString2;
|
||||
num += (uint)1;
|
||||
Asn1OctetString asn1OctetString3;
|
||||
this.transactionID = asn1OctetString3;
|
||||
num += (uint)1;
|
||||
Asn1OctetString asn1OctetString4;
|
||||
this.senderNonce = asn1OctetString4;
|
||||
num += (uint)1;
|
||||
Asn1OctetString asn1OctetString5;
|
||||
this.recipNonce = asn1OctetString5;
|
||||
num += (uint)1;
|
||||
PkiFreeText pkiFreeText;
|
||||
this.freeText = pkiFreeText;
|
||||
num += (uint)1;
|
||||
Asn1Sequence asn1Sequence;
|
||||
this.generalInfo = asn1Sequence;
|
||||
num += (uint)1;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB18 RID: 51992 RVA: 0x002E8888 File Offset: 0x002E6A88
|
||||
[Token(Token = "0x600CB18")]
|
||||
[Address(RVA = "0x2ADE9E0", Offset = "0x2ADD7E0", VA = "0x182ADE9E0")]
|
||||
public static PkiHeader GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CB18)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiHeader BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiHeader::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_22:
|
||||
stloc:string(var_6_28, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_40, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_6_28)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600CB19 RID: 51993 RVA: 0x002E88D8 File Offset: 0x002E6AD8
|
||||
[Token(Token = "0x600CB19")]
|
||||
[Address(RVA = "0x2ADEF00", Offset = "0x2ADDD00", VA = "0x182ADEF00")]
|
||||
public PkiHeader(int pvno, GeneralName sender, GeneralName recipient)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(pvno);
|
||||
base..ctor();
|
||||
this.pvno = derInteger;
|
||||
this.sender = sender;
|
||||
this.recipient = recipient;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB1A RID: 51994 RVA: 0x002E8908 File Offset: 0x002E6B08
|
||||
[Token(Token = "0x600CB1A")]
|
||||
[Address(RVA = "0xECF220", Offset = "0xECE020", VA = "0x180ECF220")]
|
||||
private PkiHeader(DerInteger pvno, GeneralName sender, GeneralName recipient)
|
||||
{
|
||||
this.pvno = pvno;
|
||||
this.sender = sender;
|
||||
this.recipient = recipient;
|
||||
}
|
||||
|
||||
// Token: 0x17002038 RID: 8248
|
||||
// (get) Token: 0x0600CB1B RID: 51995 RVA: 0x002E8930 File Offset: 0x002E6B30
|
||||
[Token(Token = "0x17002038")]
|
||||
public virtual DerInteger Pvno
|
||||
{
|
||||
[Token(Token = "0x600CB1B")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.pvno;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002039 RID: 8249
|
||||
// (get) Token: 0x0600CB1C RID: 51996 RVA: 0x002E8944 File Offset: 0x002E6B44
|
||||
[Token(Token = "0x17002039")]
|
||||
public virtual GeneralName Sender
|
||||
{
|
||||
[Token(Token = "0x600CB1C")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.sender;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700203A RID: 8250
|
||||
// (get) Token: 0x0600CB1D RID: 51997 RVA: 0x002E8958 File Offset: 0x002E6B58
|
||||
[Token(Token = "0x1700203A")]
|
||||
public virtual GeneralName Recipient
|
||||
{
|
||||
[Token(Token = "0x600CB1D")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.recipient;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700203B RID: 8251
|
||||
// (get) Token: 0x0600CB1E RID: 51998 RVA: 0x002E896C File Offset: 0x002E6B6C
|
||||
[Token(Token = "0x1700203B")]
|
||||
public virtual DerGeneralizedTime MessageTime
|
||||
{
|
||||
[Token(Token = "0x600CB1E")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this.messageTime;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700203C RID: 8252
|
||||
// (get) Token: 0x0600CB1F RID: 51999 RVA: 0x002E8980 File Offset: 0x002E6B80
|
||||
[Token(Token = "0x1700203C")]
|
||||
public virtual AlgorithmIdentifier ProtectionAlg
|
||||
{
|
||||
[Token(Token = "0x600CB1F")]
|
||||
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180", Slot = "10")]
|
||||
get
|
||||
{
|
||||
return this.protectionAlg;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700203D RID: 8253
|
||||
// (get) Token: 0x0600CB20 RID: 52000 RVA: 0x002E8994 File Offset: 0x002E6B94
|
||||
[Token(Token = "0x1700203D")]
|
||||
public virtual Asn1OctetString SenderKID
|
||||
{
|
||||
[Token(Token = "0x600CB20")]
|
||||
[Address(RVA = "0x3F63D0", Offset = "0x3F51D0", VA = "0x1803F63D0", Slot = "11")]
|
||||
get
|
||||
{
|
||||
return this.senderKID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700203E RID: 8254
|
||||
// (get) Token: 0x0600CB21 RID: 52001 RVA: 0x002E89A8 File Offset: 0x002E6BA8
|
||||
[Token(Token = "0x1700203E")]
|
||||
public virtual Asn1OctetString RecipKID
|
||||
{
|
||||
[Token(Token = "0x600CB21")]
|
||||
[Address(RVA = "0x408890", Offset = "0x407690", VA = "0x180408890", Slot = "12")]
|
||||
get
|
||||
{
|
||||
return this.recipKID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700203F RID: 8255
|
||||
// (get) Token: 0x0600CB22 RID: 52002 RVA: 0x002E89BC File Offset: 0x002E6BBC
|
||||
[Token(Token = "0x1700203F")]
|
||||
public virtual Asn1OctetString TransactionID
|
||||
{
|
||||
[Token(Token = "0x600CB22")]
|
||||
[Address(RVA = "0x3FA170", Offset = "0x3F8F70", VA = "0x1803FA170", Slot = "13")]
|
||||
get
|
||||
{
|
||||
return this.transactionID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002040 RID: 8256
|
||||
// (get) Token: 0x0600CB23 RID: 52003 RVA: 0x002E89D0 File Offset: 0x002E6BD0
|
||||
[Token(Token = "0x17002040")]
|
||||
public virtual Asn1OctetString SenderNonce
|
||||
{
|
||||
[Token(Token = "0x600CB23")]
|
||||
[Address(RVA = "0x415290", Offset = "0x414090", VA = "0x180415290", Slot = "14")]
|
||||
get
|
||||
{
|
||||
return this.senderNonce;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002041 RID: 8257
|
||||
// (get) Token: 0x0600CB24 RID: 52004 RVA: 0x002E89E4 File Offset: 0x002E6BE4
|
||||
[Token(Token = "0x17002041")]
|
||||
public virtual Asn1OctetString RecipNonce
|
||||
{
|
||||
[Token(Token = "0x600CB24")]
|
||||
[Address(RVA = "0x423D40", Offset = "0x422B40", VA = "0x180423D40", Slot = "15")]
|
||||
get
|
||||
{
|
||||
return this.recipNonce;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002042 RID: 8258
|
||||
// (get) Token: 0x0600CB25 RID: 52005 RVA: 0x002E89F8 File Offset: 0x002E6BF8
|
||||
[Token(Token = "0x17002042")]
|
||||
public virtual PkiFreeText FreeText
|
||||
{
|
||||
[Token(Token = "0x600CB25")]
|
||||
[Address(RVA = "0x423DE0", Offset = "0x422BE0", VA = "0x180423DE0", Slot = "16")]
|
||||
get
|
||||
{
|
||||
return this.freeText;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CB26 RID: 52006 RVA: 0x002E8A0C File Offset: 0x002E6C0C
|
||||
[Token(Token = "0x600CB26")]
|
||||
[Address(RVA = "0x2ADE8C0", Offset = "0x2ADD6C0", VA = "0x182ADE8C0", Slot = "17")]
|
||||
public virtual InfoTypeAndValue[] GetGeneralInfo()
|
||||
{
|
||||
if (this.generalInfo != 0)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
InfoTypeAndValue[] array = new InfoTypeAndValue[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num < array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.generalInfo.Parser;
|
||||
InfoTypeAndValue infoTypeAndValue;
|
||||
if (infoTypeAndValue != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = infoTypeAndValue;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CB27 RID: 52007 RVA: 0x002E8A5C File Offset: 0x002E6C5C
|
||||
[Token(Token = "0x600CB27")]
|
||||
[Address(RVA = "0x2ADEBD0", Offset = "0x2ADD9D0", VA = "0x182ADEBD0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[3];
|
||||
DerInteger derInteger = this.pvno;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
GeneralName generalName = this.sender;
|
||||
if (generalName != 0)
|
||||
{
|
||||
}
|
||||
array[1] = generalName;
|
||||
GeneralName generalName2 = this.recipient;
|
||||
if (generalName2 != 0)
|
||||
{
|
||||
}
|
||||
array[2] = generalName2;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
DerGeneralizedTime derGeneralizedTime = this.messageTime;
|
||||
int num = 0;
|
||||
PkiHeader.AddOptional(asn1EncodableVector, num, derGeneralizedTime);
|
||||
AlgorithmIdentifier algorithmIdentifier = this.protectionAlg;
|
||||
PkiHeader.AddOptional(asn1EncodableVector, 1, algorithmIdentifier);
|
||||
Asn1OctetString asn1OctetString = this.senderKID;
|
||||
PkiHeader.AddOptional(asn1EncodableVector, 2, asn1OctetString);
|
||||
Asn1OctetString asn1OctetString2 = this.recipKID;
|
||||
PkiHeader.AddOptional(asn1EncodableVector, 3, asn1OctetString2);
|
||||
Asn1OctetString asn1OctetString3 = this.transactionID;
|
||||
PkiHeader.AddOptional(asn1EncodableVector, 4, asn1OctetString3);
|
||||
Asn1OctetString asn1OctetString4 = this.senderNonce;
|
||||
PkiHeader.AddOptional(asn1EncodableVector, 5, asn1OctetString4);
|
||||
Asn1OctetString asn1OctetString5 = this.recipNonce;
|
||||
PkiHeader.AddOptional(asn1EncodableVector, 6, asn1OctetString5);
|
||||
PkiFreeText pkiFreeText = this.freeText;
|
||||
PkiHeader.AddOptional(asn1EncodableVector, 7, pkiFreeText);
|
||||
Asn1Sequence asn1Sequence = this.generalInfo;
|
||||
PkiHeader.AddOptional(asn1EncodableVector, 8, asn1Sequence);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CB28 RID: 52008 RVA: 0x002E8B68 File Offset: 0x002E6D68
|
||||
[Token(Token = "0x600CB28")]
|
||||
[Address(RVA = "0x2ADE7C0", Offset = "0x2ADD5C0", VA = "0x182ADE7C0")]
|
||||
private static void AddOptional(Asn1EncodableVector v, int tagNo, Asn1Encodable obj)
|
||||
{
|
||||
if (obj != 0)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(true, tagNo, obj);
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
v.Add(array);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0400816C RID: 33132
|
||||
[Token(Token = "0x400816C")]
|
||||
public static readonly GeneralName NULL_NAME = new GeneralName(X509Name.GetInstance(new DerSequence()));
|
||||
|
||||
// Token: 0x0400816D RID: 33133
|
||||
[Token(Token = "0x400816D")]
|
||||
public static readonly int CMP_1999;
|
||||
|
||||
// Token: 0x0400816E RID: 33134
|
||||
[Token(Token = "0x400816E")]
|
||||
public static readonly int CMP_2000;
|
||||
|
||||
// Token: 0x0400816F RID: 33135
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400816F")]
|
||||
private readonly DerInteger pvno;
|
||||
|
||||
// Token: 0x04008170 RID: 33136
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008170")]
|
||||
private readonly GeneralName sender;
|
||||
|
||||
// Token: 0x04008171 RID: 33137
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008171")]
|
||||
private readonly GeneralName recipient;
|
||||
|
||||
// Token: 0x04008172 RID: 33138
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008172")]
|
||||
private readonly DerGeneralizedTime messageTime;
|
||||
|
||||
// Token: 0x04008173 RID: 33139
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4008173")]
|
||||
private readonly AlgorithmIdentifier protectionAlg;
|
||||
|
||||
// Token: 0x04008174 RID: 33140
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4008174")]
|
||||
private readonly Asn1OctetString senderKID;
|
||||
|
||||
// Token: 0x04008175 RID: 33141
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4008175")]
|
||||
private readonly Asn1OctetString recipKID;
|
||||
|
||||
// Token: 0x04008176 RID: 33142
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4008176")]
|
||||
private readonly Asn1OctetString transactionID;
|
||||
|
||||
// Token: 0x04008177 RID: 33143
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4008177")]
|
||||
private readonly Asn1OctetString senderNonce;
|
||||
|
||||
// Token: 0x04008178 RID: 33144
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4008178")]
|
||||
private readonly Asn1OctetString recipNonce;
|
||||
|
||||
// Token: 0x04008179 RID: 33145
|
||||
[FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x4008179")]
|
||||
private readonly PkiFreeText freeText;
|
||||
|
||||
// Token: 0x0400817A RID: 33146
|
||||
[FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x400817A")]
|
||||
private readonly Asn1Sequence generalInfo;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user