118 lines
5.6 KiB
C#
118 lines
5.6 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
|
{
|
|
// Token: 0x02001F4F RID: 8015
|
|
[Token(Token = "0x2001F4F")]
|
|
public class Challenge : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CAC9 RID: 51913 RVA: 0x002E750C File Offset: 0x002E570C
|
|
[Token(Token = "0x600CAC9")]
|
|
[Address(RVA = "0x264AC60", Offset = "0x2649A60", VA = "0x18264AC60")]
|
|
private Challenge(Asn1Sequence seq)
|
|
{
|
|
Asn1Encodable asn1Encodable;
|
|
if (asn1Encodable == (ulong)3L)
|
|
{
|
|
Asn1SequenceParser parser = seq.Parser;
|
|
AlgorithmIdentifier algorithmIdentifier;
|
|
this.owf = algorithmIdentifier;
|
|
}
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
Asn1OctetString asn1OctetString;
|
|
this.witness = asn1OctetString;
|
|
Asn1SequenceParser parser3 = seq.Parser;
|
|
Asn1OctetString asn1OctetString2;
|
|
this.challenge = asn1OctetString2;
|
|
}
|
|
|
|
// Token: 0x0600CACA RID: 51914 RVA: 0x002E7558 File Offset: 0x002E5758
|
|
[Token(Token = "0x600CACA")]
|
|
[Address(RVA = "0x264A7D0", Offset = "0x26495D0", VA = "0x18264A7D0")]
|
|
public static Challenge GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CACA)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.Challenge BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.Challenge::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_3A:
|
|
stloc:string(var_9_40, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
|
stloc:ArgumentException(var_10_58, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_9_40)), ldstr:string("obj")))
|
|
}
|
|
|
|
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: 0x17002026 RID: 8230
|
|
// (get) Token: 0x0600CACB RID: 51915 RVA: 0x002E75C0 File Offset: 0x002E57C0
|
|
[Token(Token = "0x17002026")]
|
|
public virtual AlgorithmIdentifier Owf
|
|
{
|
|
[Token(Token = "0x600CACB")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
|
get
|
|
{
|
|
return this.owf;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CACC RID: 51916 RVA: 0x002E75D4 File Offset: 0x002E57D4
|
|
[Token(Token = "0x600CACC")]
|
|
[Address(RVA = "0x264AA50", Offset = "0x2649850", VA = "0x18264AA50", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[1];
|
|
AlgorithmIdentifier algorithmIdentifier = this.owf;
|
|
if (algorithmIdentifier != 0)
|
|
{
|
|
}
|
|
array[0] = algorithmIdentifier;
|
|
Asn1EncodableVector asn1EncodableVector;
|
|
asn1EncodableVector.AddOptional(array);
|
|
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
|
Asn1OctetString asn1OctetString = this.witness;
|
|
if (asn1OctetString != 0)
|
|
{
|
|
}
|
|
array2[0] = asn1OctetString;
|
|
asn1EncodableVector.Add(array2);
|
|
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
|
Asn1OctetString asn1OctetString2 = this.challenge;
|
|
if (asn1OctetString2 != 0)
|
|
{
|
|
}
|
|
array3[0] = asn1OctetString2;
|
|
asn1EncodableVector.Add(array3);
|
|
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04008105 RID: 33029
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4008105")]
|
|
private readonly AlgorithmIdentifier owf;
|
|
|
|
// Token: 0x04008106 RID: 33030
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4008106")]
|
|
private readonly Asn1OctetString witness;
|
|
|
|
// Token: 0x04008107 RID: 33031
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4008107")]
|
|
private readonly Asn1OctetString challenge;
|
|
}
|
|
}
|