128 lines
7.7 KiB
C#
128 lines
7.7 KiB
C#
using System;
|
|
using System.IO;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Misc
|
|
{
|
|
// Token: 0x02001EB6 RID: 7862
|
|
[Token(Token = "0x2001EB6")]
|
|
public class Cast5CbcParameters : Asn1Encodable
|
|
{
|
|
// Token: 0x0600C6CA RID: 50890 RVA: 0x002D6E30 File Offset: 0x002D5030
|
|
[Token(Token = "0x600C6CA")]
|
|
[Address(RVA = "0x28341F0", Offset = "0x2832FF0", VA = "0x1828341F0")]
|
|
public static Cast5CbcParameters GetInstance(object o)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C6CA)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Misc.Cast5CbcParameters BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Misc.Cast5CbcParameters::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_22:
|
|
stloc:ArgumentException(var_6_2C, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("unknown object in Cast5CbcParameters factory")))
|
|
}
|
|
|
|
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: 0x0600C6CB RID: 50891 RVA: 0x002D6E6C File Offset: 0x002D506C
|
|
[Token(Token = "0x600C6CB")]
|
|
[Address(RVA = "0x28344B0", Offset = "0x28332B0", VA = "0x1828344B0")]
|
|
public Cast5CbcParameters(byte[] iv, int keyLength)
|
|
{
|
|
DerOctetString derOctetString = new DerOctetString(iv);
|
|
this.iv = derOctetString;
|
|
DerInteger derInteger = new DerInteger(keyLength);
|
|
this.keyLength = derInteger;
|
|
}
|
|
|
|
// Token: 0x0600C6CC RID: 50892 RVA: 0x002D6E9C File Offset: 0x002D509C
|
|
[Token(Token = "0x600C6CC")]
|
|
[Address(RVA = "0x2834550", Offset = "0x2833350", VA = "0x182834550")]
|
|
private Cast5CbcParameters(Asn1Sequence seq)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C6CC)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Misc.Cast5CbcParameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_44:
|
|
stloc:ArgumentException(var_5_53, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), ldstr:string("seq")))
|
|
}
|
|
|
|
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: 0x0600C6CD RID: 50893 RVA: 0x002D6F00 File Offset: 0x002D5100
|
|
[Token(Token = "0x600C6CD")]
|
|
[Address(RVA = "0x2834170", Offset = "0x2832F70", VA = "0x182834170")]
|
|
public byte[] GetIV()
|
|
{
|
|
Stream octetStream = this.iv.GetOctetStream();
|
|
byte[] array;
|
|
return array;
|
|
}
|
|
|
|
// Token: 0x17001F0C RID: 7948
|
|
// (get) Token: 0x0600C6CE RID: 50894 RVA: 0x002D6F20 File Offset: 0x002D5120
|
|
[Token(Token = "0x17001F0C")]
|
|
public int KeyLength
|
|
{
|
|
[Token(Token = "0x600C6CE")]
|
|
[Address(RVA = "0x28346E0", Offset = "0x28334E0", VA = "0x1828346E0")]
|
|
get
|
|
{
|
|
return this.keyLength.Value.IntValue;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C6CF RID: 50895 RVA: 0x002D6F44 File Offset: 0x002D5144
|
|
[Token(Token = "0x600C6CF")]
|
|
[Address(RVA = "0x28343A0", Offset = "0x28331A0", VA = "0x1828343A0", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[2];
|
|
Asn1OctetString asn1OctetString = this.iv;
|
|
if (asn1OctetString != 0)
|
|
{
|
|
}
|
|
array[0] = asn1OctetString;
|
|
DerInteger derInteger = this.keyLength;
|
|
if (derInteger != 0)
|
|
{
|
|
}
|
|
array[1] = derInteger;
|
|
DerSequence derSequence = new DerSequence(array);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04007E5F RID: 32351
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007E5F")]
|
|
private readonly DerInteger keyLength;
|
|
|
|
// Token: 0x04007E60 RID: 32352
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007E60")]
|
|
private readonly Asn1OctetString iv;
|
|
}
|
|
}
|