74 lines
4.4 KiB
C#
74 lines
4.4 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
|
{
|
|
// Token: 0x02001CF7 RID: 7415
|
|
[Token(Token = "0x2001CF7")]
|
|
public class SM2KeyExchangePublicParameters : ICipherParameters
|
|
{
|
|
// Token: 0x0600B769 RID: 46953 RVA: 0x0027A880 File Offset: 0x00278A80
|
|
[Token(Token = "0x600B769")]
|
|
[Address(RVA = "0x22E4990", Offset = "0x22E3990", VA = "0x1822E4990")]
|
|
public SM2KeyExchangePublicParameters(ECPublicKeyParameters staticPublicKey, ECPublicKeyParameters ephemeralPublicKey)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B769)
|
|
|
|
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: 0x17001CFF RID: 7423
|
|
// (get) Token: 0x0600B76A RID: 46954 RVA: 0x0027A8C8 File Offset: 0x00278AC8
|
|
[Token(Token = "0x17001CFF")]
|
|
public virtual ECPublicKeyParameters StaticPublicKey
|
|
{
|
|
[Token(Token = "0x600B76A")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "4")]
|
|
get
|
|
{
|
|
return this.mStaticPublicKey;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001D00 RID: 7424
|
|
// (get) Token: 0x0600B76B RID: 46955 RVA: 0x0027A8DC File Offset: 0x00278ADC
|
|
[Token(Token = "0x17001D00")]
|
|
public virtual ECPublicKeyParameters EphemeralPublicKey
|
|
{
|
|
[Token(Token = "0x600B76B")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "5")]
|
|
get
|
|
{
|
|
return this.mEphemeralPublicKey;
|
|
}
|
|
}
|
|
|
|
// Token: 0x040073DB RID: 29659
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40073DB")]
|
|
private readonly ECPublicKeyParameters mStaticPublicKey;
|
|
|
|
// Token: 0x040073DC RID: 29660
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40073DC")]
|
|
private readonly ECPublicKeyParameters mEphemeralPublicKey;
|
|
}
|
|
}
|