Files
Aug2021-Cpp2IL-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Asn1/Pkcs/RsassaPssParameters.cs
T
2026-04-10 22:50:51 +02:00

256 lines
15 KiB
C#

using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Oiw;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
{
// Token: 0x02001E9B RID: 7835
[Token(Token = "0x2001E9B")]
public class RsassaPssParameters : Asn1Encodable
{
// Token: 0x0600C607 RID: 50695 RVA: 0x002D3B58 File Offset: 0x002D1D58
[Token(Token = "0x600C607")]
[Address(RVA = "0x2BCC670", Offset = "0x2BCB470", VA = "0x182BCC670")]
public static RsassaPssParameters GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600C607)
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: 0x0600C608 RID: 50696 RVA: 0x002D3BAC File Offset: 0x002D1DAC
[Token(Token = "0x600C608")]
[Address(RVA = "0x2BCD0F0", Offset = "0x2BCBEF0", VA = "0x182BCD0F0")]
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: 0x0600C609 RID: 50697 RVA: 0x002D3BF4 File Offset: 0x002D1DF4
[Token(Token = "0x600C609")]
[Address(RVA = "0x4F37F0", Offset = "0x4F25F0", VA = "0x1804F37F0")]
public RsassaPssParameters(AlgorithmIdentifier hashAlgorithm, AlgorithmIdentifier maskGenAlgorithm, DerInteger saltLength, DerInteger trailerField)
{
this.hashAlgorithm = hashAlgorithm;
this.saltLength = saltLength;
this.trailerField = 0;
this.maskGenAlgorithm = maskGenAlgorithm;
}
// Token: 0x0600C60A RID: 50698 RVA: 0x002D3C24 File Offset: 0x002D1E24
[Token(Token = "0x600C60A")]
[Address(RVA = "0x2BCCED0", Offset = "0x2BCBCD0", VA = "0x182BCCED0")]
public RsassaPssParameters(Asn1Sequence seq)
{
/*
An exception occurred when decompiling this method (0600C60A)
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: 0x17001EC8 RID: 7880
// (get) Token: 0x0600C60B RID: 50699 RVA: 0x002D3CDC File Offset: 0x002D1EDC
[Token(Token = "0x17001EC8")]
public AlgorithmIdentifier HashAlgorithm
{
[Token(Token = "0x600C60B")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return this.hashAlgorithm;
}
}
// Token: 0x17001EC9 RID: 7881
// (get) Token: 0x0600C60C RID: 50700 RVA: 0x002D3CF0 File Offset: 0x002D1EF0
[Token(Token = "0x17001EC9")]
public AlgorithmIdentifier MaskGenAlgorithm
{
[Token(Token = "0x600C60C")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get
{
return this.maskGenAlgorithm;
}
}
// Token: 0x17001ECA RID: 7882
// (get) Token: 0x0600C60D RID: 50701 RVA: 0x002D3D04 File Offset: 0x002D1F04
[Token(Token = "0x17001ECA")]
public DerInteger SaltLength
{
[Token(Token = "0x600C60D")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
get
{
return this.saltLength;
}
}
// Token: 0x17001ECB RID: 7883
// (get) Token: 0x0600C60E RID: 50702 RVA: 0x002D3D18 File Offset: 0x002D1F18
[Token(Token = "0x17001ECB")]
public DerInteger TrailerField
{
[Token(Token = "0x600C60E")]
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
get
{
return this.trailerField;
}
}
// Token: 0x0600C60F RID: 50703 RVA: 0x002D3D2C File Offset: 0x002D1F2C
[Token(Token = "0x600C60F")]
[Address(RVA = "0x2BCC870", Offset = "0x2BCB670", VA = "0x182BCC870", 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: 0x0600C610 RID: 50704 RVA: 0x002D3E38 File Offset: 0x002D2038
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x600C610")]
[Address(RVA = "0x2BCCD20", Offset = "0x2BCBB20", VA = "0x182BCCD20")]
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: 0x04007DC3 RID: 32195
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007DC3")]
private AlgorithmIdentifier hashAlgorithm;
// Token: 0x04007DC4 RID: 32196
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007DC4")]
private AlgorithmIdentifier maskGenAlgorithm;
// Token: 0x04007DC5 RID: 32197
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4007DC5")]
private DerInteger saltLength;
// Token: 0x04007DC6 RID: 32198
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4007DC6")]
private DerInteger trailerField;
// Token: 0x04007DC7 RID: 32199
[Token(Token = "0x4007DC7")]
public static readonly AlgorithmIdentifier DefaultHashAlgorithm;
// Token: 0x04007DC8 RID: 32200
[Token(Token = "0x4007DC8")]
public static readonly AlgorithmIdentifier DefaultMaskGenFunction;
// Token: 0x04007DC9 RID: 32201
[Token(Token = "0x4007DC9")]
public static readonly DerInteger DefaultSaltLength;
// Token: 0x04007DCA RID: 32202
[Token(Token = "0x4007DCA")]
public static readonly DerInteger DefaultTrailerField;
}
}