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: 0x02001CF6 RID: 7414
|
|
[Token(Token = "0x2001CF6")]
|
|
public class SM2KeyExchangePrivateParameters : ICipherParameters
|
|
{
|
|
// Token: 0x0600B763 RID: 46947 RVA: 0x0027A79C File Offset: 0x0027899C
|
|
[Token(Token = "0x600B763")]
|
|
[Address(RVA = "0x22E47C0", Offset = "0x22E37C0", VA = "0x1822E47C0")]
|
|
public SM2KeyExchangePrivateParameters(bool initiator, ECPrivateKeyParameters staticPrivateKey, ECPrivateKeyParameters ephemeralPrivateKey)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B763)
|
|
|
|
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 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x17001CFA RID: 7418
|
|
// (get) Token: 0x0600B764 RID: 46948 RVA: 0x0027A81C File Offset: 0x00278A1C
|
|
[Token(Token = "0x17001CFA")]
|
|
public virtual bool IsInitiator
|
|
{
|
|
[Token(Token = "0x600B764")]
|
|
[Address(RVA = "0x4944B0", Offset = "0x4934B0", VA = "0x1804944B0", Slot = "4")]
|
|
get
|
|
{
|
|
return this.mInitiator;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001CFB RID: 7419
|
|
// (get) Token: 0x0600B765 RID: 46949 RVA: 0x0027A830 File Offset: 0x00278A30
|
|
[Token(Token = "0x17001CFB")]
|
|
public virtual ECPrivateKeyParameters StaticPrivateKey
|
|
{
|
|
[Token(Token = "0x600B765")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "5")]
|
|
get
|
|
{
|
|
return this.mStaticPrivateKey;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001CFC RID: 7420
|
|
// (get) Token: 0x0600B766 RID: 46950 RVA: 0x0027A844 File Offset: 0x00278A44
|
|
[Token(Token = "0x17001CFC")]
|
|
public virtual ECPoint StaticPublicPoint
|
|
{
|
|
[Token(Token = "0x600B766")]
|
|
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "6")]
|
|
get
|
|
{
|
|
return this.mStaticPublicPoint;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001CFD RID: 7421
|
|
// (get) Token: 0x0600B767 RID: 46951 RVA: 0x0027A858 File Offset: 0x00278A58
|
|
[Token(Token = "0x17001CFD")]
|
|
public virtual ECPrivateKeyParameters EphemeralPrivateKey
|
|
{
|
|
[Token(Token = "0x600B767")]
|
|
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0", Slot = "7")]
|
|
get
|
|
{
|
|
return this.mEphemeralPrivateKey;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001CFE RID: 7422
|
|
// (get) Token: 0x0600B768 RID: 46952 RVA: 0x0027A86C File Offset: 0x00278A6C
|
|
[Token(Token = "0x17001CFE")]
|
|
public virtual ECPoint EphemeralPublicPoint
|
|
{
|
|
[Token(Token = "0x600B768")]
|
|
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0", Slot = "8")]
|
|
get
|
|
{
|
|
return this.mEphemeralPublicPoint;
|
|
}
|
|
}
|
|
|
|
// Token: 0x040073D6 RID: 29654
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40073D6")]
|
|
private readonly bool mInitiator;
|
|
|
|
// Token: 0x040073D7 RID: 29655
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40073D7")]
|
|
private readonly ECPrivateKeyParameters mStaticPrivateKey;
|
|
|
|
// Token: 0x040073D8 RID: 29656
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40073D8")]
|
|
private readonly ECPoint mStaticPublicPoint;
|
|
|
|
// Token: 0x040073D9 RID: 29657
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x40073D9")]
|
|
private readonly ECPrivateKeyParameters mEphemeralPrivateKey;
|
|
|
|
// Token: 0x040073DA RID: 29658
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x40073DA")]
|
|
private readonly ECPoint mEphemeralPublicPoint;
|
|
}
|
|
}
|