74 lines
4.4 KiB
C#
74 lines
4.4 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
|
{
|
|
// Token: 0x02001C17 RID: 7191
|
|
[Token(Token = "0x2001C17")]
|
|
public class SM2KeyExchangePublicParameters : ICipherParameters
|
|
{
|
|
// Token: 0x0600B39B RID: 45979 RVA: 0x002716C0 File Offset: 0x0026F8C0
|
|
[Token(Token = "0x600B39B")]
|
|
[Address(RVA = "0x18128F0", Offset = "0x18116F0", VA = "0x1818128F0")]
|
|
public SM2KeyExchangePublicParameters(ECPublicKeyParameters staticPublicKey, ECPublicKeyParameters ephemeralPublicKey)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B39B)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.SM2KeyExchangePublicParameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ECPublicKeyParameters,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ECPublicKeyParameters)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_24:
|
|
stloc:ArgumentNullException(var_1_2E, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("staticPublicKey")))
|
|
stloc:ArgumentException(var_2_39, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Static and ephemeral public keys have different domain parameters")))
|
|
}
|
|
|
|
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: 0x17001C62 RID: 7266
|
|
// (get) Token: 0x0600B39C RID: 45980 RVA: 0x00271708 File Offset: 0x0026F908
|
|
[Token(Token = "0x17001C62")]
|
|
public virtual ECPublicKeyParameters StaticPublicKey
|
|
{
|
|
[Token(Token = "0x600B39C")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "4")]
|
|
get
|
|
{
|
|
return this.mStaticPublicKey;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001C63 RID: 7267
|
|
// (get) Token: 0x0600B39D RID: 45981 RVA: 0x0027171C File Offset: 0x0026F91C
|
|
[Token(Token = "0x17001C63")]
|
|
public virtual ECPublicKeyParameters EphemeralPublicKey
|
|
{
|
|
[Token(Token = "0x600B39D")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "5")]
|
|
get
|
|
{
|
|
return this.mEphemeralPublicKey;
|
|
}
|
|
}
|
|
|
|
// Token: 0x04007222 RID: 29218
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007222")]
|
|
private readonly ECPublicKeyParameters mStaticPublicKey;
|
|
|
|
// Token: 0x04007223 RID: 29219
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007223")]
|
|
private readonly ECPublicKeyParameters mEphemeralPublicKey;
|
|
}
|
|
}
|