166 lines
6.6 KiB
C#
166 lines
6.6 KiB
C#
using System;
|
|
using System.IO;
|
|
using System.Runtime.InteropServices;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
|
{
|
|
// Token: 0x020018BB RID: 6331
|
|
[Token(Token = "0x20018BB")]
|
|
[StructLayout(3)]
|
|
public class RC2CbcParameter : Asn1Encodable
|
|
{
|
|
// Token: 0x0600AA10 RID: 43536 RVA: 0x0027AE30 File Offset: 0x00279030
|
|
[Token(Token = "0x600AA10")]
|
|
[Address(RVA = "0x2629B60", Offset = "0x2628560", VA = "0x182629B60")]
|
|
public static RC2CbcParameter GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600AA10)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.RC2CbcParameter BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.RC2CbcParameter::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_12:
|
|
stloc:string(var_3_18, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
|
stloc:ArgumentException(var_4_2E, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in factory: "), ldloc:string(var_3_18)), 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: 0x0600AA11 RID: 43537 RVA: 0x0027AE6C File Offset: 0x0027906C
|
|
[Token(Token = "0x600AA11")]
|
|
[Address(RVA = "0x262A0C0", Offset = "0x2628AC0", VA = "0x18262A0C0")]
|
|
public RC2CbcParameter(byte[] iv)
|
|
{
|
|
DerOctetString derOctetString = new DerOctetString(iv);
|
|
this.iv = derOctetString;
|
|
}
|
|
|
|
// Token: 0x0600AA12 RID: 43538 RVA: 0x0027AE90 File Offset: 0x00279090
|
|
[Token(Token = "0x600AA12")]
|
|
[Address(RVA = "0x262A020", Offset = "0x2628A20", VA = "0x18262A020")]
|
|
public RC2CbcParameter(int parameterVersion, byte[] iv)
|
|
{
|
|
DerInteger derInteger = new DerInteger(parameterVersion);
|
|
this.version = derInteger;
|
|
DerOctetString derOctetString = new DerOctetString(iv);
|
|
this.iv = derOctetString;
|
|
}
|
|
|
|
// Token: 0x0600AA13 RID: 43539 RVA: 0x0027AEC0 File Offset: 0x002790C0
|
|
[Token(Token = "0x600AA13")]
|
|
[Address(RVA = "0x2629E70", Offset = "0x2628870", VA = "0x182629E70")]
|
|
private RC2CbcParameter(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser3;
|
|
do
|
|
{
|
|
base..ctor();
|
|
Asn1Encodable asn1Encodable;
|
|
if (asn1Encodable != (ulong)1L)
|
|
{
|
|
Asn1SequenceParser parser = seq.Parser;
|
|
if (parser == 0)
|
|
{
|
|
}
|
|
if (parser == 0)
|
|
{
|
|
continue;
|
|
}
|
|
this.version = parser;
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
if (parser2 == 0)
|
|
{
|
|
break;
|
|
}
|
|
if (parser2 == 0)
|
|
{
|
|
continue;
|
|
}
|
|
}
|
|
parser3 = seq.Parser;
|
|
if (parser3 == 0)
|
|
{
|
|
}
|
|
}
|
|
while (parser3 == 0);
|
|
this.iv = parser3;
|
|
}
|
|
|
|
// Token: 0x17001ABB RID: 6843
|
|
// (get) Token: 0x0600AA14 RID: 43540 RVA: 0x0027AF28 File Offset: 0x00279128
|
|
[Token(Token = "0x17001ABB")]
|
|
public BigInteger RC2ParameterVersion
|
|
{
|
|
[Token(Token = "0x600AA14")]
|
|
[Address(RVA = "0x262A130", Offset = "0x2628B30", VA = "0x18262A130")]
|
|
get
|
|
{
|
|
DerInteger derInteger = this.version;
|
|
if (derInteger == 0)
|
|
{
|
|
}
|
|
return derInteger.Value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600AA15 RID: 43541 RVA: 0x0027AF48 File Offset: 0x00279148
|
|
[Token(Token = "0x600AA15")]
|
|
[Address(RVA = "0x2629AE0", Offset = "0x26284E0", VA = "0x182629AE0")]
|
|
public byte[] GetIV()
|
|
{
|
|
Stream octetStream = this.iv.GetOctetStream();
|
|
byte[] array;
|
|
return array;
|
|
}
|
|
|
|
// Token: 0x0600AA16 RID: 43542 RVA: 0x0027AF68 File Offset: 0x00279168
|
|
[Token(Token = "0x600AA16")]
|
|
[Address(RVA = "0x2629CD0", Offset = "0x26286D0", VA = "0x182629CD0", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1EncodableVector asn1EncodableVector;
|
|
if (this.version != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[1];
|
|
DerInteger derInteger = this.version;
|
|
if (derInteger != 0)
|
|
{
|
|
}
|
|
array[0] = derInteger;
|
|
asn1EncodableVector.Add(array);
|
|
}
|
|
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
|
Asn1OctetString asn1OctetString = this.iv;
|
|
if (asn1OctetString != 0)
|
|
{
|
|
}
|
|
array2[0] = asn1OctetString;
|
|
asn1EncodableVector.Add(array2);
|
|
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04006F70 RID: 28528
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4006F70")]
|
|
internal DerInteger version;
|
|
|
|
// Token: 0x04006F71 RID: 28529
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4006F71")]
|
|
internal Asn1OctetString iv;
|
|
}
|
|
}
|