m
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: 0x0200200F RID: 8207
|
||||
[Token(Token = "0x200200F")]
|
||||
public class KeyAgreeRecipientInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CD98 RID: 52632 RVA: 0x002EBFD8 File Offset: 0x002EA1D8
|
||||
[Token(Token = "0x600CD98")]
|
||||
[Address(RVA = "0x2FE6310", Offset = "0x2FE5310", VA = "0x182FE6310")]
|
||||
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: 0x0600CD99 RID: 52633 RVA: 0x002EC018 File Offset: 0x002EA218
|
||||
[Token(Token = "0x600CD99")]
|
||||
[Address(RVA = "0x2FE63B0", Offset = "0x2FE53B0", VA = "0x182FE63B0")]
|
||||
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: 0x0600CD9A RID: 52634 RVA: 0x002EC0D0 File Offset: 0x002EA2D0
|
||||
[Token(Token = "0x600CD9A")]
|
||||
[Address(RVA = "0x2FE5E00", Offset = "0x2FE4E00", VA = "0x182FE5E00")]
|
||||
public static KeyAgreeRecipientInfo GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return KeyAgreeRecipientInfo.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600CD9B RID: 52635 RVA: 0x002EC0EC File Offset: 0x002EA2EC
|
||||
[Token(Token = "0x600CD9B")]
|
||||
[Address(RVA = "0x2FE5E20", Offset = "0x2FE4E20", VA = "0x182FE5E20")]
|
||||
public static KeyAgreeRecipientInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD9B)
|
||||
|
||||
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: 0x1700206C RID: 8300
|
||||
// (get) Token: 0x0600CD9C RID: 52636 RVA: 0x002EC13C File Offset: 0x002EA33C
|
||||
[Token(Token = "0x1700206C")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CD9C")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700206D RID: 8301
|
||||
// (get) Token: 0x0600CD9D RID: 52637 RVA: 0x002EC150 File Offset: 0x002EA350
|
||||
[Token(Token = "0x1700206D")]
|
||||
public OriginatorIdentifierOrKey Originator
|
||||
{
|
||||
[Token(Token = "0x600CD9D")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.originator;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700206E RID: 8302
|
||||
// (get) Token: 0x0600CD9E RID: 52638 RVA: 0x002EC164 File Offset: 0x002EA364
|
||||
[Token(Token = "0x1700206E")]
|
||||
public Asn1OctetString UserKeyingMaterial
|
||||
{
|
||||
[Token(Token = "0x600CD9E")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.ukm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700206F RID: 8303
|
||||
// (get) Token: 0x0600CD9F RID: 52639 RVA: 0x002EC178 File Offset: 0x002EA378
|
||||
[Token(Token = "0x1700206F")]
|
||||
public AlgorithmIdentifier KeyEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600CD9F")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.keyEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002070 RID: 8304
|
||||
// (get) Token: 0x0600CDA0 RID: 52640 RVA: 0x002EC18C File Offset: 0x002EA38C
|
||||
[Token(Token = "0x17002070")]
|
||||
public Asn1Sequence RecipientEncryptedKeys
|
||||
{
|
||||
[Token(Token = "0x600CDA0")]
|
||||
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
|
||||
get
|
||||
{
|
||||
return this.recipientEncryptedKeys;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CDA1 RID: 52641 RVA: 0x002EC1A0 File Offset: 0x002EA3A0
|
||||
[Token(Token = "0x600CDA1")]
|
||||
[Address(RVA = "0x2FE6010", Offset = "0x2FE5010", VA = "0x182FE6010", 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: 0x0400825D RID: 33373
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400825D")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x0400825E RID: 33374
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400825E")]
|
||||
private OriginatorIdentifierOrKey originator;
|
||||
|
||||
// Token: 0x0400825F RID: 33375
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400825F")]
|
||||
private Asn1OctetString ukm;
|
||||
|
||||
// Token: 0x04008260 RID: 33376
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008260")]
|
||||
private AlgorithmIdentifier keyEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x04008261 RID: 33377
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4008261")]
|
||||
private Asn1Sequence recipientEncryptedKeys;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user