a
This commit is contained in:
+192
@@ -0,0 +1,192 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F2D RID: 7981
|
||||
[Token(Token = "0x2001F2D")]
|
||||
public class KekRecipientInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C9BA RID: 51642 RVA: 0x002E3530 File Offset: 0x002E1730
|
||||
[Token(Token = "0x600C9BA")]
|
||||
[Address(RVA = "0x2AD9500", Offset = "0x2AD8300", VA = "0x182AD9500")]
|
||||
public KekRecipientInfo(KekIdentifier kekID, AlgorithmIdentifier keyEncryptionAlgorithm, Asn1OctetString encryptedKey)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(4);
|
||||
this.version = derInteger;
|
||||
this.keyEncryptionAlgorithm = keyEncryptionAlgorithm;
|
||||
this.encryptedKey = encryptedKey;
|
||||
this.kekID = kekID;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9BB RID: 51643 RVA: 0x002E3568 File Offset: 0x002E1768
|
||||
[Token(Token = "0x600C9BB")]
|
||||
[Address(RVA = "0x2AD9380", Offset = "0x2AD8180", VA = "0x182AD9380")]
|
||||
public KekRecipientInfo(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser4;
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
if (parser != 0)
|
||||
{
|
||||
this.version = parser;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
KekIdentifier kekIdentifier;
|
||||
this.kekID = kekIdentifier;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.keyEncryptionAlgorithm = algorithmIdentifier;
|
||||
parser4 = seq.Parser;
|
||||
if (parser4 == 0 || parser4 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.encryptedKey = parser4;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9BC RID: 51644 RVA: 0x002E35D4 File Offset: 0x002E17D4
|
||||
[Token(Token = "0x600C9BC")]
|
||||
[Address(RVA = "0x2AD91A0", Offset = "0x2AD7FA0", VA = "0x182AD91A0")]
|
||||
public static KekRecipientInfo GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return KekRecipientInfo.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C9BD RID: 51645 RVA: 0x002E35F0 File Offset: 0x002E17F0
|
||||
[Token(Token = "0x600C9BD")]
|
||||
[Address(RVA = "0x2AD8FB0", Offset = "0x2AD7DB0", VA = "0x182AD8FB0")]
|
||||
public static KekRecipientInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C9BD)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.KekRecipientInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.KekRecipientInfo::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 KekRecipientInfo: "), 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 1660
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x17001FC9 RID: 8137
|
||||
// (get) Token: 0x0600C9BE RID: 51646 RVA: 0x002E3640 File Offset: 0x002E1840
|
||||
[Token(Token = "0x17001FC9")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600C9BE")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FCA RID: 8138
|
||||
// (get) Token: 0x0600C9BF RID: 51647 RVA: 0x002E3654 File Offset: 0x002E1854
|
||||
[Token(Token = "0x17001FCA")]
|
||||
public KekIdentifier KekID
|
||||
{
|
||||
[Token(Token = "0x600C9BF")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.kekID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FCB RID: 8139
|
||||
// (get) Token: 0x0600C9C0 RID: 51648 RVA: 0x002E3668 File Offset: 0x002E1868
|
||||
[Token(Token = "0x17001FCB")]
|
||||
public AlgorithmIdentifier KeyEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C9C0")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.keyEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FCC RID: 8140
|
||||
// (get) Token: 0x0600C9C1 RID: 51649 RVA: 0x002E367C File Offset: 0x002E187C
|
||||
[Token(Token = "0x17001FCC")]
|
||||
public Asn1OctetString EncryptedKey
|
||||
{
|
||||
[Token(Token = "0x600C9C1")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
||||
get
|
||||
{
|
||||
return this.encryptedKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9C2 RID: 51650 RVA: 0x002E3690 File Offset: 0x002E1890
|
||||
[Token(Token = "0x600C9C2")]
|
||||
[Address(RVA = "0x2AD91C0", Offset = "0x2AD7FC0", VA = "0x182AD91C0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[4];
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
KekIdentifier kekIdentifier = this.kekID;
|
||||
if (kekIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[1] = kekIdentifier;
|
||||
AlgorithmIdentifier algorithmIdentifier = this.keyEncryptionAlgorithm;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[2] = algorithmIdentifier;
|
||||
Asn1OctetString asn1OctetString = this.encryptedKey;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array[3] = asn1OctetString;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400809E RID: 32926
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400809E")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x0400809F RID: 32927
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400809F")]
|
||||
private KekIdentifier kekID;
|
||||
|
||||
// Token: 0x040080A0 RID: 32928
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40080A0")]
|
||||
private AlgorithmIdentifier keyEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x040080A1 RID: 32929
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40080A1")]
|
||||
private Asn1OctetString encryptedKey;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user