148 lines
6.5 KiB
C#
148 lines
6.5 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.IsisMtt.X509
|
|
{
|
|
// Token: 0x02001EC4 RID: 7876
|
|
[Token(Token = "0x2001EC4")]
|
|
public class MonetaryLimit : Asn1Encodable
|
|
{
|
|
// Token: 0x0600C700 RID: 50944 RVA: 0x002D7E04 File Offset: 0x002D6004
|
|
[Token(Token = "0x600C700")]
|
|
[Address(RVA = "0x283DB80", Offset = "0x283C980", VA = "0x18283DB80")]
|
|
public static MonetaryLimit GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C700)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.IsisMtt.X509.MonetaryLimit BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.IsisMtt.X509.MonetaryLimit::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_5A:
|
|
stloc:string(var_13_60, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
|
stloc:ArgumentException(var_14_78, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_13_60)), 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: 0x0600C701 RID: 50945 RVA: 0x002D7E8C File Offset: 0x002D608C
|
|
[Token(Token = "0x600C701")]
|
|
[Address(RVA = "0x283E090", Offset = "0x283CE90", VA = "0x18283E090")]
|
|
private MonetaryLimit(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser = seq.Parser;
|
|
DerPrintableString derPrintableString;
|
|
this.currency = derPrintableString;
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
DerInteger derInteger;
|
|
this.amount = derInteger;
|
|
Asn1SequenceParser parser3 = seq.Parser;
|
|
DerInteger derInteger2;
|
|
this.exponent = derInteger2;
|
|
}
|
|
|
|
// Token: 0x0600C702 RID: 50946 RVA: 0x002D7ED4 File Offset: 0x002D60D4
|
|
[Token(Token = "0x600C702")]
|
|
[Address(RVA = "0x283DFC0", Offset = "0x283CDC0", VA = "0x18283DFC0")]
|
|
public MonetaryLimit(string currency, int amount, int exponent)
|
|
{
|
|
DerPrintableString derPrintableString = new DerPrintableString(currency, true);
|
|
this.currency = derPrintableString;
|
|
DerInteger derInteger = new DerInteger(amount);
|
|
this.amount = derInteger;
|
|
DerInteger derInteger2 = new DerInteger(amount);
|
|
this.exponent = derInteger2;
|
|
}
|
|
|
|
// Token: 0x17001F15 RID: 7957
|
|
// (get) Token: 0x0600C703 RID: 50947 RVA: 0x002D7F14 File Offset: 0x002D6114
|
|
[Token(Token = "0x17001F15")]
|
|
public virtual string Currency
|
|
{
|
|
[Token(Token = "0x600C703")]
|
|
[Address(RVA = "0x5F5F00", Offset = "0x5F4D00", VA = "0x1805F5F00", Slot = "6")]
|
|
get
|
|
{
|
|
Asn1Object asn1Object = this.currency.ToAsn1Object();
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001F16 RID: 7958
|
|
// (get) Token: 0x0600C704 RID: 50948 RVA: 0x002D7F34 File Offset: 0x002D6134
|
|
[Token(Token = "0x17001F16")]
|
|
public virtual BigInteger Amount
|
|
{
|
|
[Token(Token = "0x600C704")]
|
|
[Address(RVA = "0x283E1D0", Offset = "0x283CFD0", VA = "0x18283E1D0", Slot = "7")]
|
|
get
|
|
{
|
|
return this.amount.Value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001F17 RID: 7959
|
|
// (get) Token: 0x0600C705 RID: 50949 RVA: 0x002D7F54 File Offset: 0x002D6154
|
|
[Token(Token = "0x17001F17")]
|
|
public virtual BigInteger Exponent
|
|
{
|
|
[Token(Token = "0x600C705")]
|
|
[Address(RVA = "0x283E1F0", Offset = "0x283CFF0", VA = "0x18283E1F0", Slot = "8")]
|
|
get
|
|
{
|
|
return this.exponent.Value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C706 RID: 50950 RVA: 0x002D7F74 File Offset: 0x002D6174
|
|
[Token(Token = "0x600C706")]
|
|
[Address(RVA = "0x283DE50", Offset = "0x283CC50", VA = "0x18283DE50", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[3];
|
|
DerPrintableString derPrintableString = this.currency;
|
|
if (derPrintableString != 0)
|
|
{
|
|
}
|
|
array[0] = derPrintableString;
|
|
DerInteger derInteger = this.amount;
|
|
if (derInteger != 0)
|
|
{
|
|
}
|
|
array[1] = derInteger;
|
|
DerInteger derInteger2 = this.exponent;
|
|
if (derInteger2 != 0)
|
|
{
|
|
}
|
|
array[2] = derInteger2;
|
|
DerSequence derSequence = new DerSequence(array);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04007EB7 RID: 32439
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007EB7")]
|
|
private readonly DerPrintableString currency;
|
|
|
|
// Token: 0x04007EB8 RID: 32440
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007EB8")]
|
|
private readonly DerInteger amount;
|
|
|
|
// Token: 0x04007EB9 RID: 32441
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4007EB9")]
|
|
private readonly DerInteger exponent;
|
|
}
|
|
}
|