258 lines
15 KiB
C#
258 lines
15 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Oiw;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
|
{
|
|
// Token: 0x020018BE RID: 6334
|
|
[Token(Token = "0x20018BE")]
|
|
[StructLayout(3)]
|
|
public class RsassaPssParameters : Asn1Encodable
|
|
{
|
|
// Token: 0x0600AA2D RID: 43565 RVA: 0x0027B64C File Offset: 0x0027984C
|
|
[Token(Token = "0x600AA2D")]
|
|
[Address(RVA = "0x262BEB0", Offset = "0x262A8B0", VA = "0x18262BEB0")]
|
|
public static RsassaPssParameters GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600AA2D)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.RsassaPssParameters BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.RsassaPssParameters::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_26:
|
|
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
|
stloc:ArgumentException(var_7_44, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in factory: "), ldloc:string(var_6_2C)), ldstr:string("obj")))
|
|
}
|
|
|
|
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: 0x0600AA2E RID: 43566 RVA: 0x0027B6A0 File Offset: 0x002798A0
|
|
[Token(Token = "0x600AA2E")]
|
|
[Address(RVA = "0x262C930", Offset = "0x262B330", VA = "0x18262C930")]
|
|
public RsassaPssParameters()
|
|
{
|
|
AlgorithmIdentifier defaultHashAlgorithm = RsassaPssParameters.DefaultHashAlgorithm;
|
|
this.hashAlgorithm = defaultHashAlgorithm;
|
|
AlgorithmIdentifier defaultMaskGenFunction = RsassaPssParameters.DefaultMaskGenFunction;
|
|
this.maskGenAlgorithm = defaultMaskGenFunction;
|
|
DerInteger defaultSaltLength = RsassaPssParameters.DefaultSaltLength;
|
|
this.saltLength = defaultSaltLength;
|
|
DerInteger defaultTrailerField = RsassaPssParameters.DefaultTrailerField;
|
|
this.trailerField = defaultTrailerField;
|
|
}
|
|
|
|
// Token: 0x0600AA2F RID: 43567 RVA: 0x0027B6E8 File Offset: 0x002798E8
|
|
[Token(Token = "0x600AA2F")]
|
|
[Address(RVA = "0x9BCAC0", Offset = "0x9BB4C0", VA = "0x1809BCAC0")]
|
|
public RsassaPssParameters(AlgorithmIdentifier hashAlgorithm, AlgorithmIdentifier maskGenAlgorithm, DerInteger saltLength, DerInteger trailerField)
|
|
{
|
|
this.hashAlgorithm = hashAlgorithm;
|
|
this.saltLength = saltLength;
|
|
this.trailerField = 0;
|
|
this.maskGenAlgorithm = maskGenAlgorithm;
|
|
}
|
|
|
|
// Token: 0x0600AA30 RID: 43568 RVA: 0x0027B718 File Offset: 0x00279918
|
|
[Token(Token = "0x600AA30")]
|
|
[Address(RVA = "0x262C710", Offset = "0x262B110", VA = "0x18262C710")]
|
|
public RsassaPssParameters(Asn1Sequence seq)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600AA30)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.RsassaPssParameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_9E:
|
|
stloc:ArgumentException(var_13_A8, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("unknown tag")))
|
|
}
|
|
|
|
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.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.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.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: 0x17001AC7 RID: 6855
|
|
// (get) Token: 0x0600AA31 RID: 43569 RVA: 0x0027B7D0 File Offset: 0x002799D0
|
|
[Token(Token = "0x17001AC7")]
|
|
public AlgorithmIdentifier HashAlgorithm
|
|
{
|
|
[Token(Token = "0x600AA31")]
|
|
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
|
get
|
|
{
|
|
return this.hashAlgorithm;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001AC8 RID: 6856
|
|
// (get) Token: 0x0600AA32 RID: 43570 RVA: 0x0027B7E4 File Offset: 0x002799E4
|
|
[Token(Token = "0x17001AC8")]
|
|
public AlgorithmIdentifier MaskGenAlgorithm
|
|
{
|
|
[Token(Token = "0x600AA32")]
|
|
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
|
get
|
|
{
|
|
return this.maskGenAlgorithm;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001AC9 RID: 6857
|
|
// (get) Token: 0x0600AA33 RID: 43571 RVA: 0x0027B7F8 File Offset: 0x002799F8
|
|
[Token(Token = "0x17001AC9")]
|
|
public DerInteger SaltLength
|
|
{
|
|
[Token(Token = "0x600AA33")]
|
|
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
|
get
|
|
{
|
|
return this.saltLength;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001ACA RID: 6858
|
|
// (get) Token: 0x0600AA34 RID: 43572 RVA: 0x0027B80C File Offset: 0x00279A0C
|
|
[Token(Token = "0x17001ACA")]
|
|
public DerInteger TrailerField
|
|
{
|
|
[Token(Token = "0x600AA34")]
|
|
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
|
get
|
|
{
|
|
return this.trailerField;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600AA35 RID: 43573 RVA: 0x0027B820 File Offset: 0x00279A20
|
|
[Token(Token = "0x600AA35")]
|
|
[Address(RVA = "0x262C0B0", Offset = "0x262AAB0", VA = "0x18262C0B0", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
AlgorithmIdentifier algorithmIdentifier = this.hashAlgorithm;
|
|
Asn1Encodable[] array = new Asn1Encodable[0];
|
|
AlgorithmIdentifier algorithmIdentifier2 = this.hashAlgorithm;
|
|
int num;
|
|
DerTaggedObject derTaggedObject = new DerTaggedObject(true, num, algorithmIdentifier2);
|
|
num = 0;
|
|
if (derTaggedObject != 0)
|
|
{
|
|
}
|
|
array[0] = derTaggedObject;
|
|
Asn1EncodableVector asn1EncodableVector;
|
|
asn1EncodableVector.Add(array);
|
|
AlgorithmIdentifier algorithmIdentifier3 = this.maskGenAlgorithm;
|
|
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
|
AlgorithmIdentifier algorithmIdentifier4 = this.maskGenAlgorithm;
|
|
DerTaggedObject derTaggedObject2 = new DerTaggedObject(16777216 != 0, 16777216, algorithmIdentifier4);
|
|
if (derTaggedObject2 != 0)
|
|
{
|
|
}
|
|
array2[0] = derTaggedObject2;
|
|
asn1EncodableVector.Add(array2);
|
|
DerInteger derInteger = this.saltLength;
|
|
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
|
DerInteger derInteger2 = this.saltLength;
|
|
DerTaggedObject derTaggedObject3 = new DerTaggedObject(true, 2, derInteger2);
|
|
if (derTaggedObject3 != 0)
|
|
{
|
|
}
|
|
array3[0] = derTaggedObject3;
|
|
asn1EncodableVector.Add(array3);
|
|
DerInteger derInteger3 = this.trailerField;
|
|
Asn1Encodable[] array4 = new Asn1Encodable[1];
|
|
DerInteger derInteger4 = this.trailerField;
|
|
DerTaggedObject derTaggedObject4 = new DerTaggedObject(true, 3, derInteger4);
|
|
if (derTaggedObject4 != 0)
|
|
{
|
|
}
|
|
array4[0] = derTaggedObject4;
|
|
asn1EncodableVector.Add(array4);
|
|
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600AA36 RID: 43574 RVA: 0x0027B92C File Offset: 0x00279B2C
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
[Token(Token = "0x600AA36")]
|
|
[Address(RVA = "0x262C560", Offset = "0x262AF60", VA = "0x18262C560")]
|
|
static RsassaPssParameters()
|
|
{
|
|
DerObjectIdentifier idSha = OiwObjectIdentifiers.IdSha1;
|
|
DerNull instance = DerNull.Instance;
|
|
RsassaPssParameters.DefaultHashAlgorithm = new AlgorithmIdentifier(idSha, instance);
|
|
DerObjectIdentifier idMgf = PkcsObjectIdentifiers.IdMgf1;
|
|
AlgorithmIdentifier defaultHashAlgorithm = RsassaPssParameters.DefaultHashAlgorithm;
|
|
RsassaPssParameters.DefaultMaskGenFunction = new AlgorithmIdentifier(idMgf, defaultHashAlgorithm);
|
|
RsassaPssParameters.DefaultSaltLength = new DerInteger(20);
|
|
RsassaPssParameters.DefaultTrailerField = new DerInteger(1);
|
|
}
|
|
|
|
// Token: 0x04006F80 RID: 28544
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4006F80")]
|
|
private AlgorithmIdentifier hashAlgorithm;
|
|
|
|
// Token: 0x04006F81 RID: 28545
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4006F81")]
|
|
private AlgorithmIdentifier maskGenAlgorithm;
|
|
|
|
// Token: 0x04006F82 RID: 28546
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4006F82")]
|
|
private DerInteger saltLength;
|
|
|
|
// Token: 0x04006F83 RID: 28547
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4006F83")]
|
|
private DerInteger trailerField;
|
|
|
|
// Token: 0x04006F84 RID: 28548
|
|
[Token(Token = "0x4006F84")]
|
|
public static readonly AlgorithmIdentifier DefaultHashAlgorithm;
|
|
|
|
// Token: 0x04006F85 RID: 28549
|
|
[Token(Token = "0x4006F85")]
|
|
public static readonly AlgorithmIdentifier DefaultMaskGenFunction;
|
|
|
|
// Token: 0x04006F86 RID: 28550
|
|
[Token(Token = "0x4006F86")]
|
|
public static readonly DerInteger DefaultSaltLength;
|
|
|
|
// Token: 0x04006F87 RID: 28551
|
|
[Token(Token = "0x4006F87")]
|
|
public static readonly DerInteger DefaultTrailerField;
|
|
}
|
|
}
|