193 lines
8.2 KiB
C#
193 lines
8.2 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified
|
|
{
|
|
// Token: 0x0200185B RID: 6235
|
|
[Token(Token = "0x200185B")]
|
|
[StructLayout(3)]
|
|
public class BiometricData : Asn1Encodable
|
|
{
|
|
// Token: 0x0600A842 RID: 43074 RVA: 0x00273764 File Offset: 0x00271964
|
|
[Token(Token = "0x600A842")]
|
|
[Address(RVA = "0x2AFF5B0", Offset = "0x2AFDFB0", VA = "0x182AFF5B0")]
|
|
public static BiometricData GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600A842)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified.BiometricData BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified.BiometricData::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_72:
|
|
stloc:string(var_15_78, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
|
stloc:ArgumentException(var_16_90, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in GetInstance: "), ldloc:string(var_15_78)), 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: 0x0600A843 RID: 43075 RVA: 0x00273804 File Offset: 0x00271A04
|
|
[Token(Token = "0x600A843")]
|
|
[Address(RVA = "0x2AFFA30", Offset = "0x2AFE430", VA = "0x182AFFA30")]
|
|
private BiometricData(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser = seq.Parser;
|
|
TypeOfBiometricData typeOfBiometricData;
|
|
this.typeOfBiometricData = typeOfBiometricData;
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
AlgorithmIdentifier algorithmIdentifier;
|
|
this.hashAlgorithm = algorithmIdentifier;
|
|
Asn1SequenceParser parser3 = seq.Parser;
|
|
Asn1OctetString asn1OctetString;
|
|
this.biometricDataHash = asn1OctetString;
|
|
Asn1Encodable asn1Encodable;
|
|
if (asn1Encodable > (ulong)3L)
|
|
{
|
|
Asn1SequenceParser parser4 = seq.Parser;
|
|
DerIA5String derIA5String;
|
|
this.sourceDataUri = derIA5String;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600A844 RID: 43076 RVA: 0x00273860 File Offset: 0x00271A60
|
|
[Token(Token = "0x600A844")]
|
|
[Address(RVA = "0x9BCAC0", Offset = "0x9BB4C0", VA = "0x1809BCAC0")]
|
|
public BiometricData(TypeOfBiometricData typeOfBiometricData, AlgorithmIdentifier hashAlgorithm, Asn1OctetString biometricDataHash, DerIA5String sourceDataUri)
|
|
{
|
|
this.typeOfBiometricData = typeOfBiometricData;
|
|
this.biometricDataHash = biometricDataHash;
|
|
this.sourceDataUri = 0;
|
|
this.hashAlgorithm = hashAlgorithm;
|
|
}
|
|
|
|
// Token: 0x0600A845 RID: 43077 RVA: 0x00273890 File Offset: 0x00271A90
|
|
[Token(Token = "0x600A845")]
|
|
[Address(RVA = "0x27D9E40", Offset = "0x27D8840", VA = "0x1827D9E40")]
|
|
public BiometricData(TypeOfBiometricData typeOfBiometricData, AlgorithmIdentifier hashAlgorithm, Asn1OctetString biometricDataHash)
|
|
{
|
|
this.typeOfBiometricData = typeOfBiometricData;
|
|
this.biometricDataHash = biometricDataHash;
|
|
this.hashAlgorithm = hashAlgorithm;
|
|
this.sourceDataUri = (ulong)0L;
|
|
}
|
|
|
|
// Token: 0x17001A66 RID: 6758
|
|
// (get) Token: 0x0600A846 RID: 43078 RVA: 0x002738C4 File Offset: 0x00271AC4
|
|
[Token(Token = "0x17001A66")]
|
|
public TypeOfBiometricData TypeOfBiometricData
|
|
{
|
|
[Token(Token = "0x600A846")]
|
|
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
|
get
|
|
{
|
|
return this.typeOfBiometricData;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001A67 RID: 6759
|
|
// (get) Token: 0x0600A847 RID: 43079 RVA: 0x002738D8 File Offset: 0x00271AD8
|
|
[Token(Token = "0x17001A67")]
|
|
public AlgorithmIdentifier HashAlgorithm
|
|
{
|
|
[Token(Token = "0x600A847")]
|
|
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
|
get
|
|
{
|
|
return this.hashAlgorithm;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001A68 RID: 6760
|
|
// (get) Token: 0x0600A848 RID: 43080 RVA: 0x002738EC File Offset: 0x00271AEC
|
|
[Token(Token = "0x17001A68")]
|
|
public Asn1OctetString BiometricDataHash
|
|
{
|
|
[Token(Token = "0x600A848")]
|
|
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
|
get
|
|
{
|
|
return this.biometricDataHash;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001A69 RID: 6761
|
|
// (get) Token: 0x0600A849 RID: 43081 RVA: 0x00273900 File Offset: 0x00271B00
|
|
[Token(Token = "0x17001A69")]
|
|
public DerIA5String SourceDataUri
|
|
{
|
|
[Token(Token = "0x600A849")]
|
|
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
|
get
|
|
{
|
|
return this.sourceDataUri;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600A84A RID: 43082 RVA: 0x00273914 File Offset: 0x00271B14
|
|
[Token(Token = "0x600A84A")]
|
|
[Address(RVA = "0x2AFF820", Offset = "0x2AFE220", VA = "0x182AFF820", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[3];
|
|
TypeOfBiometricData typeOfBiometricData = this.typeOfBiometricData;
|
|
if (typeOfBiometricData != 0)
|
|
{
|
|
}
|
|
array[0] = typeOfBiometricData;
|
|
AlgorithmIdentifier algorithmIdentifier = this.hashAlgorithm;
|
|
if (algorithmIdentifier != 0)
|
|
{
|
|
}
|
|
array[1] = algorithmIdentifier;
|
|
Asn1OctetString asn1OctetString = this.biometricDataHash;
|
|
if (asn1OctetString != 0)
|
|
{
|
|
}
|
|
array[2] = asn1OctetString;
|
|
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
|
if (this.sourceDataUri != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
|
DerIA5String derIA5String = this.sourceDataUri;
|
|
if (derIA5String != 0)
|
|
{
|
|
}
|
|
array2[0] = derIA5String;
|
|
asn1EncodableVector.Add(array2);
|
|
}
|
|
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04006D7F RID: 28031
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4006D7F")]
|
|
private readonly TypeOfBiometricData typeOfBiometricData;
|
|
|
|
// Token: 0x04006D80 RID: 28032
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4006D80")]
|
|
private readonly AlgorithmIdentifier hashAlgorithm;
|
|
|
|
// Token: 0x04006D81 RID: 28033
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4006D81")]
|
|
private readonly Asn1OctetString biometricDataHash;
|
|
|
|
// Token: 0x04006D82 RID: 28034
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4006D82")]
|
|
private readonly DerIA5String sourceDataUri;
|
|
}
|
|
}
|