m
This commit is contained in:
+126
@@ -0,0 +1,126 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002014 RID: 8212
|
||||
[Token(Token = "0x2002014")]
|
||||
public class OriginatorPublicKey : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CDC7 RID: 52679 RVA: 0x002ECA50 File Offset: 0x002EAC50
|
||||
[Token(Token = "0x600CDC7")]
|
||||
[Address(RVA = "0x2FE9BA0", Offset = "0x2FE8BA0", VA = "0x182FE9BA0")]
|
||||
public OriginatorPublicKey(AlgorithmIdentifier algorithm, byte[] publicKey)
|
||||
{
|
||||
this.mAlgorithm = algorithm;
|
||||
DerBitString derBitString = new DerBitString(publicKey);
|
||||
this.mPublicKey = derBitString;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDC8 RID: 52680 RVA: 0x002ECA78 File Offset: 0x002EAC78
|
||||
[Token(Token = "0x600CDC8")]
|
||||
[Address(RVA = "0x2FE9AE0", Offset = "0x2FE8AE0", VA = "0x182FE9AE0")]
|
||||
[Obsolete]
|
||||
public OriginatorPublicKey(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.mAlgorithm = algorithmIdentifier;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
DerBitString derBitString;
|
||||
this.mPublicKey = derBitString;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDC9 RID: 52681 RVA: 0x002ECAB0 File Offset: 0x002EACB0
|
||||
[Token(Token = "0x600CDC9")]
|
||||
[Address(RVA = "0x2FE99B0", Offset = "0x2FE89B0", VA = "0x182FE99B0")]
|
||||
public static OriginatorPublicKey GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return OriginatorPublicKey.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600CDCA RID: 52682 RVA: 0x002ECACC File Offset: 0x002EACCC
|
||||
[Token(Token = "0x600CDCA")]
|
||||
[Address(RVA = "0x2FE9770", Offset = "0x2FE8770", VA = "0x182FE9770")]
|
||||
public static OriginatorPublicKey GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CDCA)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.OriginatorPublicKey BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.OriginatorPublicKey::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_4B:
|
||||
stloc:string(var_10_51, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_11_64, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid OriginatorPublicKey: "), ldloc:string(var_10_51))))
|
||||
}
|
||||
|
||||
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: 0x17002080 RID: 8320
|
||||
// (get) Token: 0x0600CDCB RID: 52683 RVA: 0x002ECB40 File Offset: 0x002EAD40
|
||||
[Token(Token = "0x17002080")]
|
||||
public AlgorithmIdentifier Algorithm
|
||||
{
|
||||
[Token(Token = "0x600CDCB")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.mAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002081 RID: 8321
|
||||
// (get) Token: 0x0600CDCC RID: 52684 RVA: 0x002ECB54 File Offset: 0x002EAD54
|
||||
[Token(Token = "0x17002081")]
|
||||
public DerBitString PublicKey
|
||||
{
|
||||
[Token(Token = "0x600CDCC")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.mPublicKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CDCD RID: 52685 RVA: 0x002ECB68 File Offset: 0x002EAD68
|
||||
[Token(Token = "0x600CDCD")]
|
||||
[Address(RVA = "0x2FE99D0", Offset = "0x2FE89D0", VA = "0x182FE99D0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
AlgorithmIdentifier algorithmIdentifier = this.mAlgorithm;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = algorithmIdentifier;
|
||||
DerBitString derBitString = this.mPublicKey;
|
||||
if (derBitString != 0)
|
||||
{
|
||||
}
|
||||
array[1] = derBitString;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400826D RID: 33389
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400826D")]
|
||||
private readonly AlgorithmIdentifier mAlgorithm;
|
||||
|
||||
// Token: 0x0400826E RID: 33390
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400826E")]
|
||||
private readonly DerBitString mPublicKey;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user