191 lines
8.0 KiB
C#
191 lines
8.0 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified
|
|
{
|
|
// Token: 0x02001E38 RID: 7736
|
|
[Token(Token = "0x2001E38")]
|
|
public class BiometricData : Asn1Encodable
|
|
{
|
|
// Token: 0x0600C41C RID: 50204 RVA: 0x002CBC5C File Offset: 0x002C9E5C
|
|
[Token(Token = "0x600C41C")]
|
|
[Address(RVA = "0x2B34970", Offset = "0x2B33770", VA = "0x182B34970")]
|
|
public static BiometricData GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C41C)
|
|
|
|
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: 0x0600C41D RID: 50205 RVA: 0x002CBCFC File Offset: 0x002C9EFC
|
|
[Token(Token = "0x600C41D")]
|
|
[Address(RVA = "0x2B34DF0", Offset = "0x2B33BF0", VA = "0x182B34DF0")]
|
|
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: 0x0600C41E RID: 50206 RVA: 0x002CBD58 File Offset: 0x002C9F58
|
|
[Token(Token = "0x600C41E")]
|
|
[Address(RVA = "0x4F37F0", Offset = "0x4F25F0", VA = "0x1804F37F0")]
|
|
public BiometricData(TypeOfBiometricData typeOfBiometricData, AlgorithmIdentifier hashAlgorithm, Asn1OctetString biometricDataHash, DerIA5String sourceDataUri)
|
|
{
|
|
this.typeOfBiometricData = typeOfBiometricData;
|
|
this.biometricDataHash = biometricDataHash;
|
|
this.sourceDataUri = 0;
|
|
this.hashAlgorithm = hashAlgorithm;
|
|
}
|
|
|
|
// Token: 0x0600C41F RID: 50207 RVA: 0x002CBD88 File Offset: 0x002C9F88
|
|
[Token(Token = "0x600C41F")]
|
|
[Address(RVA = "0x2845D70", Offset = "0x2844B70", VA = "0x182845D70")]
|
|
public BiometricData(TypeOfBiometricData typeOfBiometricData, AlgorithmIdentifier hashAlgorithm, Asn1OctetString biometricDataHash)
|
|
{
|
|
this.typeOfBiometricData = typeOfBiometricData;
|
|
this.biometricDataHash = biometricDataHash;
|
|
this.hashAlgorithm = hashAlgorithm;
|
|
this.sourceDataUri = (ulong)0L;
|
|
}
|
|
|
|
// Token: 0x17001E67 RID: 7783
|
|
// (get) Token: 0x0600C420 RID: 50208 RVA: 0x002CBDBC File Offset: 0x002C9FBC
|
|
[Token(Token = "0x17001E67")]
|
|
public TypeOfBiometricData TypeOfBiometricData
|
|
{
|
|
[Token(Token = "0x600C420")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
|
get
|
|
{
|
|
return this.typeOfBiometricData;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001E68 RID: 7784
|
|
// (get) Token: 0x0600C421 RID: 50209 RVA: 0x002CBDD0 File Offset: 0x002C9FD0
|
|
[Token(Token = "0x17001E68")]
|
|
public AlgorithmIdentifier HashAlgorithm
|
|
{
|
|
[Token(Token = "0x600C421")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
|
get
|
|
{
|
|
return this.hashAlgorithm;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001E69 RID: 7785
|
|
// (get) Token: 0x0600C422 RID: 50210 RVA: 0x002CBDE4 File Offset: 0x002C9FE4
|
|
[Token(Token = "0x17001E69")]
|
|
public Asn1OctetString BiometricDataHash
|
|
{
|
|
[Token(Token = "0x600C422")]
|
|
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
|
get
|
|
{
|
|
return this.biometricDataHash;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001E6A RID: 7786
|
|
// (get) Token: 0x0600C423 RID: 50211 RVA: 0x002CBDF8 File Offset: 0x002C9FF8
|
|
[Token(Token = "0x17001E6A")]
|
|
public DerIA5String SourceDataUri
|
|
{
|
|
[Token(Token = "0x600C423")]
|
|
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
|
get
|
|
{
|
|
return this.sourceDataUri;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C424 RID: 50212 RVA: 0x002CBE0C File Offset: 0x002CA00C
|
|
[Token(Token = "0x600C424")]
|
|
[Address(RVA = "0x2B34BE0", Offset = "0x2B339E0", VA = "0x182B34BE0", 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: 0x04007BC2 RID: 31682
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007BC2")]
|
|
private readonly TypeOfBiometricData typeOfBiometricData;
|
|
|
|
// Token: 0x04007BC3 RID: 31683
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007BC3")]
|
|
private readonly AlgorithmIdentifier hashAlgorithm;
|
|
|
|
// Token: 0x04007BC4 RID: 31684
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4007BC4")]
|
|
private readonly Asn1OctetString biometricDataHash;
|
|
|
|
// Token: 0x04007BC5 RID: 31685
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4007BC5")]
|
|
private readonly DerIA5String sourceDataUri;
|
|
}
|
|
}
|