oh dear
This commit is contained in:
+249
@@ -0,0 +1,249 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F2F RID: 7983
|
||||
[Token(Token = "0x2001F2F")]
|
||||
public class KeyAgreeRecipientInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C9CA RID: 51658 RVA: 0x002E3838 File Offset: 0x002E1A38
|
||||
[Token(Token = "0x600C9CA")]
|
||||
[Address(RVA = "0x2AD9DB0", Offset = "0x2AD8BB0", VA = "0x182AD9DB0")]
|
||||
public KeyAgreeRecipientInfo(OriginatorIdentifierOrKey originator, Asn1OctetString ukm, AlgorithmIdentifier keyEncryptionAlgorithm, Asn1Sequence recipientEncryptedKeys)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(3);
|
||||
this.version = derInteger;
|
||||
this.ukm = ukm;
|
||||
this.keyEncryptionAlgorithm = keyEncryptionAlgorithm;
|
||||
this.recipientEncryptedKeys = 0;
|
||||
this.originator = originator;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9CB RID: 51659 RVA: 0x002E3878 File Offset: 0x002E1A78
|
||||
[Token(Token = "0x600C9CB")]
|
||||
[Address(RVA = "0x2AD9E50", Offset = "0x2AD8C50", VA = "0x182AD9E50")]
|
||||
public KeyAgreeRecipientInfo(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser6;
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
if (parser != 0)
|
||||
{
|
||||
this.version = parser;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
if (parser2 == 0)
|
||||
{
|
||||
}
|
||||
if (parser2 != 0)
|
||||
{
|
||||
Asn1Object asn1Object;
|
||||
OriginatorIdentifierOrKey instance = OriginatorIdentifierOrKey.GetInstance(asn1Object);
|
||||
this.originator = instance;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
if (parser3 != 0 && parser3 != 0)
|
||||
{
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
if (parser4 == 0)
|
||||
{
|
||||
}
|
||||
if (parser4 == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
Asn1OctetString asn1OctetString;
|
||||
this.ukm = asn1OctetString;
|
||||
}
|
||||
Asn1SequenceParser parser5 = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.keyEncryptionAlgorithm = algorithmIdentifier;
|
||||
parser6 = seq.Parser;
|
||||
if (parser6 == 0 || parser6 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
this.recipientEncryptedKeys = parser6;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9CC RID: 51660 RVA: 0x002E3930 File Offset: 0x002E1B30
|
||||
[Token(Token = "0x600C9CC")]
|
||||
[Address(RVA = "0x2AD98A0", Offset = "0x2AD86A0", VA = "0x182AD98A0")]
|
||||
public static KeyAgreeRecipientInfo GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return KeyAgreeRecipientInfo.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C9CD RID: 51661 RVA: 0x002E394C File Offset: 0x002E1B4C
|
||||
[Token(Token = "0x600C9CD")]
|
||||
[Address(RVA = "0x2AD98C0", Offset = "0x2AD86C0", VA = "0x182AD98C0")]
|
||||
public static KeyAgreeRecipientInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C9CD)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.KeyAgreeRecipientInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.KeyAgreeRecipientInfo::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("Illegal object in KeyAgreeRecipientInfo: "), 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: 0x17001FCF RID: 8143
|
||||
// (get) Token: 0x0600C9CE RID: 51662 RVA: 0x002E399C File Offset: 0x002E1B9C
|
||||
[Token(Token = "0x17001FCF")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600C9CE")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FD0 RID: 8144
|
||||
// (get) Token: 0x0600C9CF RID: 51663 RVA: 0x002E39B0 File Offset: 0x002E1BB0
|
||||
[Token(Token = "0x17001FD0")]
|
||||
public OriginatorIdentifierOrKey Originator
|
||||
{
|
||||
[Token(Token = "0x600C9CF")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.originator;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FD1 RID: 8145
|
||||
// (get) Token: 0x0600C9D0 RID: 51664 RVA: 0x002E39C4 File Offset: 0x002E1BC4
|
||||
[Token(Token = "0x17001FD1")]
|
||||
public Asn1OctetString UserKeyingMaterial
|
||||
{
|
||||
[Token(Token = "0x600C9D0")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.ukm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FD2 RID: 8146
|
||||
// (get) Token: 0x0600C9D1 RID: 51665 RVA: 0x002E39D8 File Offset: 0x002E1BD8
|
||||
[Token(Token = "0x17001FD2")]
|
||||
public AlgorithmIdentifier KeyEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C9D1")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
||||
get
|
||||
{
|
||||
return this.keyEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FD3 RID: 8147
|
||||
// (get) Token: 0x0600C9D2 RID: 51666 RVA: 0x002E39EC File Offset: 0x002E1BEC
|
||||
[Token(Token = "0x17001FD3")]
|
||||
public Asn1Sequence RecipientEncryptedKeys
|
||||
{
|
||||
[Token(Token = "0x600C9D2")]
|
||||
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")]
|
||||
get
|
||||
{
|
||||
return this.recipientEncryptedKeys;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9D3 RID: 51667 RVA: 0x002E3A00 File Offset: 0x002E1C00
|
||||
[Token(Token = "0x600C9D3")]
|
||||
[Address(RVA = "0x2AD9AB0", Offset = "0x2AD88B0", VA = "0x182AD9AB0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
OriginatorIdentifierOrKey originatorIdentifierOrKey = this.originator;
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(true, num, originatorIdentifierOrKey);
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[1] = derTaggedObject;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.ukm != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1OctetString asn1OctetString = this.ukm;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(16777216 != 0, 16777216, asn1OctetString);
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[2];
|
||||
AlgorithmIdentifier algorithmIdentifier = this.keyEncryptionAlgorithm;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = algorithmIdentifier;
|
||||
Asn1Sequence asn1Sequence = this.recipientEncryptedKeys;
|
||||
if (asn1Sequence != 0)
|
||||
{
|
||||
}
|
||||
array3[1] = asn1Sequence;
|
||||
asn1EncodableVector.Add(array3);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040080A4 RID: 32932
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080A4")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x040080A5 RID: 32933
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40080A5")]
|
||||
private OriginatorIdentifierOrKey originator;
|
||||
|
||||
// Token: 0x040080A6 RID: 32934
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40080A6")]
|
||||
private Asn1OctetString ukm;
|
||||
|
||||
// Token: 0x040080A7 RID: 32935
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40080A7")]
|
||||
private AlgorithmIdentifier keyEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x040080A8 RID: 32936
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40080A8")]
|
||||
private Asn1Sequence recipientEncryptedKeys;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user