m
This commit is contained in:
@@ -0,0 +1,318 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002021 RID: 8225
|
||||
[Token(Token = "0x2002021")]
|
||||
public class SignerInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CE33 RID: 52787 RVA: 0x002EE2C4 File Offset: 0x002EC4C4
|
||||
[Token(Token = "0x600CE33")]
|
||||
[Address(RVA = "0x23BB480", Offset = "0x23BA480", VA = "0x1823BB480")]
|
||||
public static SignerInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE33)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.SignerInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.SignerInfo::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: 0x0600CE34 RID: 52788 RVA: 0x002EE318 File Offset: 0x002EC518
|
||||
[Token(Token = "0x600CE34")]
|
||||
[Address(RVA = "0x23BBA60", Offset = "0x23BAA60", VA = "0x1823BBA60")]
|
||||
public SignerInfo(SignerIdentifier sid, AlgorithmIdentifier digAlgorithm, Asn1Set authenticatedAttributes, AlgorithmIdentifier digEncryptionAlgorithm, Asn1OctetString encryptedDigest, Asn1Set unauthenticatedAttributes)
|
||||
{
|
||||
bool isTagged = sid.IsTagged;
|
||||
DerInteger derInteger = new DerInteger(3);
|
||||
this.version = derInteger;
|
||||
this.digEncryptionAlgorithm = 0;
|
||||
this.encryptedDigest = 0;
|
||||
this.authenticatedAttributes = authenticatedAttributes;
|
||||
this.unauthenticatedAttributes = 0;
|
||||
this.sid = sid;
|
||||
this.digAlgorithm = digAlgorithm;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE35 RID: 52789 RVA: 0x002EE370 File Offset: 0x002EC570
|
||||
[Token(Token = "0x600CE35")]
|
||||
[Address(RVA = "0x23BBE70", Offset = "0x23BAE70", VA = "0x1823BBE70")]
|
||||
public SignerInfo(SignerIdentifier sid, AlgorithmIdentifier digAlgorithm, Attributes authenticatedAttributes, AlgorithmIdentifier digEncryptionAlgorithm, Asn1OctetString encryptedDigest, Attributes unauthenticatedAttributes)
|
||||
{
|
||||
bool isTagged = sid.IsTagged;
|
||||
DerInteger derInteger = new DerInteger(3);
|
||||
this.version = derInteger;
|
||||
this.sid = sid;
|
||||
this.digAlgorithm = digAlgorithm;
|
||||
Asn1Set instance = Asn1Set.GetInstance(authenticatedAttributes);
|
||||
this.authenticatedAttributes = instance;
|
||||
this.digEncryptionAlgorithm = 0;
|
||||
this.encryptedDigest = 0;
|
||||
Asn1Set asn1Set;
|
||||
this.unauthenticatedAttributes = asn1Set;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE36 RID: 52790 RVA: 0x002EE3D0 File Offset: 0x002EC5D0
|
||||
[Token(Token = "0x600CE36")]
|
||||
[Address(RVA = "0x23BBB40", Offset = "0x23BAB40", VA = "0x1823BBB40")]
|
||||
[Obsolete]
|
||||
public SignerInfo(Asn1Sequence seq)
|
||||
{
|
||||
int num;
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
IEnumerator enumerator = seq.GetEnumerator();
|
||||
if (enumerator == 0)
|
||||
{
|
||||
}
|
||||
num = 0;
|
||||
if (enumerator != 0)
|
||||
{
|
||||
this.version = enumerator;
|
||||
SignerIdentifier signerIdentifier;
|
||||
this.sid = signerIdentifier;
|
||||
AlgorithmIdentifier instance = AlgorithmIdentifier.GetInstance(signerIdentifier);
|
||||
this.digAlgorithm = instance;
|
||||
Asn1Set asn1Set;
|
||||
if (instance != 0 && instance != 0)
|
||||
{
|
||||
if (instance == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
this.authenticatedAttributes = asn1Set;
|
||||
}
|
||||
this.authenticatedAttributes = num;
|
||||
AlgorithmIdentifier instance2 = AlgorithmIdentifier.GetInstance(asn1Set);
|
||||
this.digEncryptionAlgorithm = instance2;
|
||||
Asn1OctetString instance3 = Asn1OctetString.GetInstance(instance2);
|
||||
this.encryptedDigest = instance3;
|
||||
if (instance3 == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (instance3 == 0 || instance3 != 0)
|
||||
{
|
||||
goto IL_9A;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.unauthenticatedAttributes = num;
|
||||
return;
|
||||
IL_9A:
|
||||
Asn1Set asn1Set2;
|
||||
this.unauthenticatedAttributes = asn1Set2;
|
||||
}
|
||||
|
||||
// Token: 0x170020A1 RID: 8353
|
||||
// (get) Token: 0x0600CE37 RID: 52791 RVA: 0x002EE488 File Offset: 0x002EC688
|
||||
[Token(Token = "0x170020A1")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CE37")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020A2 RID: 8354
|
||||
// (get) Token: 0x0600CE38 RID: 52792 RVA: 0x002EE49C File Offset: 0x002EC69C
|
||||
[Token(Token = "0x170020A2")]
|
||||
public SignerIdentifier SignerID
|
||||
{
|
||||
[Token(Token = "0x600CE38")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.sid;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020A3 RID: 8355
|
||||
// (get) Token: 0x0600CE39 RID: 52793 RVA: 0x002EE4B0 File Offset: 0x002EC6B0
|
||||
[Token(Token = "0x170020A3")]
|
||||
public Asn1Set AuthenticatedAttributes
|
||||
{
|
||||
[Token(Token = "0x600CE39")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.authenticatedAttributes;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020A4 RID: 8356
|
||||
// (get) Token: 0x0600CE3A RID: 52794 RVA: 0x002EE4C4 File Offset: 0x002EC6C4
|
||||
[Token(Token = "0x170020A4")]
|
||||
public AlgorithmIdentifier DigestAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600CE3A")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.digAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020A5 RID: 8357
|
||||
// (get) Token: 0x0600CE3B RID: 52795 RVA: 0x002EE4D8 File Offset: 0x002EC6D8
|
||||
[Token(Token = "0x170020A5")]
|
||||
public Asn1OctetString EncryptedDigest
|
||||
{
|
||||
[Token(Token = "0x600CE3B")]
|
||||
[Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0")]
|
||||
get
|
||||
{
|
||||
return this.encryptedDigest;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020A6 RID: 8358
|
||||
// (get) Token: 0x0600CE3C RID: 52796 RVA: 0x002EE4EC File Offset: 0x002EC6EC
|
||||
[Token(Token = "0x170020A6")]
|
||||
public AlgorithmIdentifier DigestEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600CE3C")]
|
||||
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
|
||||
get
|
||||
{
|
||||
return this.digEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020A7 RID: 8359
|
||||
// (get) Token: 0x0600CE3D RID: 52797 RVA: 0x002EE500 File Offset: 0x002EC700
|
||||
[Token(Token = "0x170020A7")]
|
||||
public Asn1Set UnauthenticatedAttributes
|
||||
{
|
||||
[Token(Token = "0x600CE3D")]
|
||||
[Address(RVA = "0x417680", Offset = "0x416680", VA = "0x180417680")]
|
||||
get
|
||||
{
|
||||
return this.unauthenticatedAttributes;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CE3E RID: 52798 RVA: 0x002EE514 File Offset: 0x002EC714
|
||||
[Token(Token = "0x600CE3E")]
|
||||
[Address(RVA = "0x23BB680", Offset = "0x23BA680", VA = "0x1823BB680", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[3];
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
SignerIdentifier signerIdentifier = this.sid;
|
||||
if (signerIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[1] = signerIdentifier;
|
||||
AlgorithmIdentifier algorithmIdentifier = this.digAlgorithm;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[2] = algorithmIdentifier;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.authenticatedAttributes != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1Set asn1Set = this.authenticatedAttributes;
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, asn1Set);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[2];
|
||||
AlgorithmIdentifier algorithmIdentifier2 = this.digEncryptionAlgorithm;
|
||||
if (algorithmIdentifier2 != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = algorithmIdentifier2;
|
||||
Asn1OctetString asn1OctetString = this.encryptedDigest;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array3[1] = asn1OctetString;
|
||||
asn1EncodableVector.Add(array3);
|
||||
if (this.unauthenticatedAttributes != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array4 = new Asn1Encodable[1];
|
||||
Asn1Set asn1Set2 = this.unauthenticatedAttributes;
|
||||
int num3;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num3 != 0, 1, asn1Set2);
|
||||
num3 = 0;
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array4[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array4);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04008294 RID: 33428
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008294")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04008295 RID: 33429
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008295")]
|
||||
private SignerIdentifier sid;
|
||||
|
||||
// Token: 0x04008296 RID: 33430
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008296")]
|
||||
private AlgorithmIdentifier digAlgorithm;
|
||||
|
||||
// Token: 0x04008297 RID: 33431
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008297")]
|
||||
private Asn1Set authenticatedAttributes;
|
||||
|
||||
// Token: 0x04008298 RID: 33432
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4008298")]
|
||||
private AlgorithmIdentifier digEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x04008299 RID: 33433
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4008299")]
|
||||
private Asn1OctetString encryptedDigest;
|
||||
|
||||
// Token: 0x0400829A RID: 33434
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400829A")]
|
||||
private Asn1Set unauthenticatedAttributes;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user