oh dear
This commit is contained in:
+243
@@ -0,0 +1,243 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F38 RID: 7992
|
||||
[Token(Token = "0x2001F38")]
|
||||
public class PasswordRecipientInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CA14 RID: 51732 RVA: 0x002E47D8 File Offset: 0x002E29D8
|
||||
[Token(Token = "0x600CA14")]
|
||||
[Address(RVA = "0x2ADDBE0", Offset = "0x2ADC9E0", VA = "0x182ADDBE0")]
|
||||
public PasswordRecipientInfo(AlgorithmIdentifier keyEncryptionAlgorithm, Asn1OctetString encryptedKey)
|
||||
{
|
||||
int num;
|
||||
DerInteger derInteger = new DerInteger(num);
|
||||
num = 0;
|
||||
this.version = derInteger;
|
||||
this.keyEncryptionAlgorithm = keyEncryptionAlgorithm;
|
||||
this.encryptedKey = encryptedKey;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA15 RID: 51733 RVA: 0x002E480C File Offset: 0x002E2A0C
|
||||
[Token(Token = "0x600CA15")]
|
||||
[Address(RVA = "0x2ADDC60", Offset = "0x2ADCA60", VA = "0x182ADDC60")]
|
||||
public PasswordRecipientInfo(AlgorithmIdentifier keyDerivationAlgorithm, AlgorithmIdentifier keyEncryptionAlgorithm, Asn1OctetString encryptedKey)
|
||||
{
|
||||
int num;
|
||||
DerInteger derInteger = new DerInteger(num);
|
||||
num = 0;
|
||||
this.version = derInteger;
|
||||
this.keyEncryptionAlgorithm = keyEncryptionAlgorithm;
|
||||
this.encryptedKey = encryptedKey;
|
||||
this.keyDerivationAlgorithm = keyDerivationAlgorithm;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA16 RID: 51734 RVA: 0x002E4844 File Offset: 0x002E2A44
|
||||
[Token(Token = "0x600CA16")]
|
||||
[Address(RVA = "0x2ADD900", Offset = "0x2ADC700", VA = "0x182ADD900")]
|
||||
public PasswordRecipientInfo(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser7;
|
||||
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)
|
||||
{
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
if (parser3 == 0)
|
||||
{
|
||||
}
|
||||
if (parser3 == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.keyDerivationAlgorithm = algorithmIdentifier;
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier2;
|
||||
this.keyEncryptionAlgorithm = algorithmIdentifier2;
|
||||
Asn1SequenceParser parser5 = seq.Parser;
|
||||
if (parser5 == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (parser5 == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
Asn1SequenceParser parser6 = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier3;
|
||||
this.keyEncryptionAlgorithm = algorithmIdentifier3;
|
||||
parser7 = seq.Parser;
|
||||
if (parser7 == 0 || parser7 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.encryptedKey = parser7;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA17 RID: 51735 RVA: 0x002E48FC File Offset: 0x002E2AFC
|
||||
[Token(Token = "0x600CA17")]
|
||||
[Address(RVA = "0x2ADD460", Offset = "0x2ADC260", VA = "0x182ADD460")]
|
||||
public static PasswordRecipientInfo GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return PasswordRecipientInfo.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600CA18 RID: 51736 RVA: 0x002E4918 File Offset: 0x002E2B18
|
||||
[Token(Token = "0x600CA18")]
|
||||
[Address(RVA = "0x2ADD480", Offset = "0x2ADC280", VA = "0x182ADD480")]
|
||||
public static PasswordRecipientInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CA18)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.PasswordRecipientInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.PasswordRecipientInfo::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 PasswordRecipientInfo: "), 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: 0x17001FEB RID: 8171
|
||||
// (get) Token: 0x0600CA19 RID: 51737 RVA: 0x002E4968 File Offset: 0x002E2B68
|
||||
[Token(Token = "0x17001FEB")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CA19")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FEC RID: 8172
|
||||
// (get) Token: 0x0600CA1A RID: 51738 RVA: 0x002E497C File Offset: 0x002E2B7C
|
||||
[Token(Token = "0x17001FEC")]
|
||||
public AlgorithmIdentifier KeyDerivationAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600CA1A")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.keyDerivationAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FED RID: 8173
|
||||
// (get) Token: 0x0600CA1B RID: 51739 RVA: 0x002E4990 File Offset: 0x002E2B90
|
||||
[Token(Token = "0x17001FED")]
|
||||
public AlgorithmIdentifier KeyEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600CA1B")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.keyEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FEE RID: 8174
|
||||
// (get) Token: 0x0600CA1C RID: 51740 RVA: 0x002E49A4 File Offset: 0x002E2BA4
|
||||
[Token(Token = "0x17001FEE")]
|
||||
public Asn1OctetString EncryptedKey
|
||||
{
|
||||
[Token(Token = "0x600CA1C")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
||||
get
|
||||
{
|
||||
return this.encryptedKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CA1D RID: 51741 RVA: 0x002E49B8 File Offset: 0x002E2BB8
|
||||
[Token(Token = "0x600CA1D")]
|
||||
[Address(RVA = "0x2ADD670", Offset = "0x2ADC470", VA = "0x182ADD670", 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.keyDerivationAlgorithm != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
AlgorithmIdentifier algorithmIdentifier = this.keyDerivationAlgorithm;
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, algorithmIdentifier);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[2];
|
||||
AlgorithmIdentifier algorithmIdentifier2 = this.keyEncryptionAlgorithm;
|
||||
if (algorithmIdentifier2 != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = algorithmIdentifier2;
|
||||
Asn1OctetString asn1OctetString = this.encryptedKey;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array3[1] = asn1OctetString;
|
||||
asn1EncodableVector.Add(array3);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040080BC RID: 32956
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080BC")]
|
||||
private readonly DerInteger version;
|
||||
|
||||
// Token: 0x040080BD RID: 32957
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40080BD")]
|
||||
private readonly AlgorithmIdentifier keyDerivationAlgorithm;
|
||||
|
||||
// Token: 0x040080BE RID: 32958
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40080BE")]
|
||||
private readonly AlgorithmIdentifier keyEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x040080BF RID: 32959
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40080BF")]
|
||||
private readonly Asn1OctetString encryptedKey;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user