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: 0x0200202F RID: 8239
|
|
[Token(Token = "0x200202F")]
|
|
public class Challenge : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CE97 RID: 52887 RVA: 0x002EFCD8 File Offset: 0x002EDED8
|
|
[Token(Token = "0x600CE97")]
|
|
[Address(RVA = "0x2FDF5E0", Offset = "0x2FDE5E0", VA = "0x182FDF5E0")]
|
|
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: 0x0600CE98 RID: 52888 RVA: 0x002EFD24 File Offset: 0x002EDF24
|
|
[Token(Token = "0x600CE98")]
|
|
[Address(RVA = "0x2FDF150", Offset = "0x2FDE150", VA = "0x182FDF150")]
|
|
public static Challenge GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CE98)
|
|
|
|
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: 0x170020C3 RID: 8387
|
|
// (get) Token: 0x0600CE99 RID: 52889 RVA: 0x002EFD8C File Offset: 0x002EDF8C
|
|
[Token(Token = "0x170020C3")]
|
|
public virtual AlgorithmIdentifier Owf
|
|
{
|
|
[Token(Token = "0x600CE99")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
|
get
|
|
{
|
|
return this.owf;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CE9A RID: 52890 RVA: 0x002EFDA0 File Offset: 0x002EDFA0
|
|
[Token(Token = "0x600CE9A")]
|
|
[Address(RVA = "0x2FDF3D0", Offset = "0x2FDE3D0", VA = "0x182FDF3D0", 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: 0x040082BE RID: 33470
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40082BE")]
|
|
private readonly AlgorithmIdentifier owf;
|
|
|
|
// Token: 0x040082BF RID: 33471
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40082BF")]
|
|
private readonly Asn1OctetString witness;
|
|
|
|
// Token: 0x040082C0 RID: 33472
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40082C0")]
|
|
private readonly Asn1OctetString challenge;
|
|
}
|
|
}
|