129 lines
6.0 KiB
C#
129 lines
6.0 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
|
{
|
|
// Token: 0x02001C16 RID: 7190
|
|
[Token(Token = "0x2001C16")]
|
|
public class SM2KeyExchangePrivateParameters : ICipherParameters
|
|
{
|
|
// Token: 0x0600B395 RID: 45973 RVA: 0x002715DC File Offset: 0x0026F7DC
|
|
[Token(Token = "0x600B395")]
|
|
[Address(RVA = "0x1812720", Offset = "0x1811520", VA = "0x181812720")]
|
|
public SM2KeyExchangePrivateParameters(bool initiator, ECPrivateKeyParameters staticPrivateKey, ECPrivateKeyParameters ephemeralPrivateKey)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B395)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.SM2KeyExchangePrivateParameters::.ctor(System.Boolean,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ECPrivateKeyParameters,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ECPrivateKeyParameters)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_5B:
|
|
stloc:ArgumentNullException(var_3_65, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("staticPrivateKey")))
|
|
stloc:ArgumentException(var_4_70, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Static and ephemeral private 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 1660
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x17001C5D RID: 7261
|
|
// (get) Token: 0x0600B396 RID: 45974 RVA: 0x0027165C File Offset: 0x0026F85C
|
|
[Token(Token = "0x17001C5D")]
|
|
public virtual bool IsInitiator
|
|
{
|
|
[Token(Token = "0x600B396")]
|
|
[Address(RVA = "0x42D5E0", Offset = "0x42C3E0", VA = "0x18042D5E0", Slot = "4")]
|
|
get
|
|
{
|
|
return this.mInitiator;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001C5E RID: 7262
|
|
// (get) Token: 0x0600B397 RID: 45975 RVA: 0x00271670 File Offset: 0x0026F870
|
|
[Token(Token = "0x17001C5E")]
|
|
public virtual ECPrivateKeyParameters StaticPrivateKey
|
|
{
|
|
[Token(Token = "0x600B397")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "5")]
|
|
get
|
|
{
|
|
return this.mStaticPrivateKey;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001C5F RID: 7263
|
|
// (get) Token: 0x0600B398 RID: 45976 RVA: 0x00271684 File Offset: 0x0026F884
|
|
[Token(Token = "0x17001C5F")]
|
|
public virtual ECPoint StaticPublicPoint
|
|
{
|
|
[Token(Token = "0x600B398")]
|
|
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "6")]
|
|
get
|
|
{
|
|
return this.mStaticPublicPoint;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001C60 RID: 7264
|
|
// (get) Token: 0x0600B399 RID: 45977 RVA: 0x00271698 File Offset: 0x0026F898
|
|
[Token(Token = "0x17001C60")]
|
|
public virtual ECPrivateKeyParameters EphemeralPrivateKey
|
|
{
|
|
[Token(Token = "0x600B399")]
|
|
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0", Slot = "7")]
|
|
get
|
|
{
|
|
return this.mEphemeralPrivateKey;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001C61 RID: 7265
|
|
// (get) Token: 0x0600B39A RID: 45978 RVA: 0x002716AC File Offset: 0x0026F8AC
|
|
[Token(Token = "0x17001C61")]
|
|
public virtual ECPoint EphemeralPublicPoint
|
|
{
|
|
[Token(Token = "0x600B39A")]
|
|
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180", Slot = "8")]
|
|
get
|
|
{
|
|
return this.mEphemeralPublicPoint;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0400721D RID: 29213
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400721D")]
|
|
private readonly bool mInitiator;
|
|
|
|
// Token: 0x0400721E RID: 29214
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400721E")]
|
|
private readonly ECPrivateKeyParameters mStaticPrivateKey;
|
|
|
|
// Token: 0x0400721F RID: 29215
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400721F")]
|
|
private readonly ECPoint mStaticPublicPoint;
|
|
|
|
// Token: 0x04007220 RID: 29216
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4007220")]
|
|
private readonly ECPrivateKeyParameters mEphemeralPrivateKey;
|
|
|
|
// Token: 0x04007221 RID: 29217
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4007221")]
|
|
private readonly ECPoint mEphemeralPublicPoint;
|
|
}
|
|
}
|