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: 0x02001F96 RID: 8086
|
|
[Token(Token = "0x2001F96")]
|
|
public class Cast5CbcParameters : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CA98 RID: 51864 RVA: 0x002DF6A4 File Offset: 0x002DD8A4
|
|
[Token(Token = "0x600CA98")]
|
|
[Address(RVA = "0x2F7C100", Offset = "0x2F7B100", VA = "0x182F7C100")]
|
|
public static Cast5CbcParameters GetInstance(object o)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CA98)
|
|
|
|
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: 0x0600CA99 RID: 51865 RVA: 0x002DF6E0 File Offset: 0x002DD8E0
|
|
[Token(Token = "0x600CA99")]
|
|
[Address(RVA = "0x2F7C3C0", Offset = "0x2F7B3C0", VA = "0x182F7C3C0")]
|
|
public Cast5CbcParameters(byte[] iv, int keyLength)
|
|
{
|
|
DerOctetString derOctetString = new DerOctetString(iv);
|
|
this.iv = derOctetString;
|
|
DerInteger derInteger = new DerInteger(keyLength);
|
|
this.keyLength = derInteger;
|
|
}
|
|
|
|
// Token: 0x0600CA9A RID: 51866 RVA: 0x002DF710 File Offset: 0x002DD910
|
|
[Token(Token = "0x600CA9A")]
|
|
[Address(RVA = "0x2F7C460", Offset = "0x2F7B460", VA = "0x182F7C460")]
|
|
private Cast5CbcParameters(Asn1Sequence seq)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CA9A)
|
|
|
|
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: 0x0600CA9B RID: 51867 RVA: 0x002DF774 File Offset: 0x002DD974
|
|
[Token(Token = "0x600CA9B")]
|
|
[Address(RVA = "0x2F7C080", Offset = "0x2F7B080", VA = "0x182F7C080")]
|
|
public byte[] GetIV()
|
|
{
|
|
Stream octetStream = this.iv.GetOctetStream();
|
|
byte[] array;
|
|
return array;
|
|
}
|
|
|
|
// Token: 0x17001FA9 RID: 8105
|
|
// (get) Token: 0x0600CA9C RID: 51868 RVA: 0x002DF794 File Offset: 0x002DD994
|
|
[Token(Token = "0x17001FA9")]
|
|
public int KeyLength
|
|
{
|
|
[Token(Token = "0x600CA9C")]
|
|
[Address(RVA = "0x2EA9260", Offset = "0x2EA8260", VA = "0x182EA9260")]
|
|
get
|
|
{
|
|
return this.keyLength.Value.IntValue;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CA9D RID: 51869 RVA: 0x002DF7B8 File Offset: 0x002DD9B8
|
|
[Token(Token = "0x600CA9D")]
|
|
[Address(RVA = "0x2F7C2B0", Offset = "0x2F7B2B0", VA = "0x182F7C2B0", 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: 0x04008018 RID: 32792
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4008018")]
|
|
private readonly DerInteger keyLength;
|
|
|
|
// Token: 0x04008019 RID: 32793
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4008019")]
|
|
private readonly Asn1OctetString iv;
|
|
}
|
|
}
|