86 lines
5.0 KiB
C#
86 lines
5.0 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
|
{
|
|
// Token: 0x02001CEC RID: 7404
|
|
[Token(Token = "0x2001CEC")]
|
|
public class ParametersWithIV : ICipherParameters
|
|
{
|
|
// Token: 0x0600B732 RID: 46898 RVA: 0x00279F7C File Offset: 0x0027817C
|
|
[Token(Token = "0x600B732")]
|
|
[Address(RVA = "0x22E31D0", Offset = "0x22E21D0", VA = "0x1822E31D0")]
|
|
public ParametersWithIV(ICipherParameters parameters, byte[] iv)
|
|
{
|
|
int length = iv.Length;
|
|
base..ctor();
|
|
this.parameters = parameters;
|
|
int num = 0;
|
|
byte[] array = Arrays.CopyOfRange(iv, num, length);
|
|
this.iv = array;
|
|
}
|
|
|
|
// Token: 0x0600B733 RID: 46899 RVA: 0x00279FB8 File Offset: 0x002781B8
|
|
[Token(Token = "0x600B733")]
|
|
[Address(RVA = "0x22E3100", Offset = "0x22E2100", VA = "0x1822E3100")]
|
|
public ParametersWithIV(ICipherParameters parameters, byte[] iv, int ivOff, int ivLen)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B733)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ParametersWithIV::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.ICipherParameters,System.Byte[],System.Int32,System.Int32)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_19:
|
|
stloc:ArgumentNullException(var_1_23, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("iv")))
|
|
}
|
|
|
|
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
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: 0x0600B734 RID: 46900 RVA: 0x00279FE8 File Offset: 0x002781E8
|
|
[Token(Token = "0x600B734")]
|
|
[Address(RVA = "0x22E3080", Offset = "0x22E2080", VA = "0x1822E3080")]
|
|
public byte[] GetIV()
|
|
{
|
|
byte[] array = this.iv;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x17001CE7 RID: 7399
|
|
// (get) Token: 0x0600B735 RID: 46901 RVA: 0x0027A004 File Offset: 0x00278204
|
|
[Token(Token = "0x17001CE7")]
|
|
public ICipherParameters Parameters
|
|
{
|
|
[Token(Token = "0x600B735")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
get
|
|
{
|
|
return this.parameters;
|
|
}
|
|
}
|
|
|
|
// Token: 0x040073BF RID: 29631
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40073BF")]
|
|
private readonly ICipherParameters parameters;
|
|
|
|
// Token: 0x040073C0 RID: 29632
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40073C0")]
|
|
private readonly byte[] iv;
|
|
}
|
|
}
|