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: 0x02001F18 RID: 7960
|
|
[Token(Token = "0x2001F18")]
|
|
public class BiometricData : Asn1Encodable
|
|
{
|
|
// Token: 0x0600C7EA RID: 51178 RVA: 0x002D44EC File Offset: 0x002D26EC
|
|
[Token(Token = "0x600C7EA")]
|
|
[Address(RVA = "0x2E782D0", Offset = "0x2E772D0", VA = "0x182E782D0")]
|
|
public static BiometricData GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C7EA)
|
|
|
|
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: 0x0600C7EB RID: 51179 RVA: 0x002D458C File Offset: 0x002D278C
|
|
[Token(Token = "0x600C7EB")]
|
|
[Address(RVA = "0x2E787A0", Offset = "0x2E777A0", VA = "0x182E787A0")]
|
|
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: 0x0600C7EC RID: 51180 RVA: 0x002D45E8 File Offset: 0x002D27E8
|
|
[Token(Token = "0x600C7EC")]
|
|
[Address(RVA = "0xC5DB60", Offset = "0xC5CB60", VA = "0x180C5DB60")]
|
|
public BiometricData(TypeOfBiometricData typeOfBiometricData, AlgorithmIdentifier hashAlgorithm, Asn1OctetString biometricDataHash, DerIA5String sourceDataUri)
|
|
{
|
|
this.typeOfBiometricData = typeOfBiometricData;
|
|
this.biometricDataHash = biometricDataHash;
|
|
this.sourceDataUri = 0;
|
|
this.hashAlgorithm = hashAlgorithm;
|
|
}
|
|
|
|
// Token: 0x0600C7ED RID: 51181 RVA: 0x002D4618 File Offset: 0x002D2818
|
|
[Token(Token = "0x600C7ED")]
|
|
[Address(RVA = "0x2E78750", Offset = "0x2E77750", VA = "0x182E78750")]
|
|
public BiometricData(TypeOfBiometricData typeOfBiometricData, AlgorithmIdentifier hashAlgorithm, Asn1OctetString biometricDataHash)
|
|
{
|
|
this.typeOfBiometricData = typeOfBiometricData;
|
|
this.biometricDataHash = biometricDataHash;
|
|
this.hashAlgorithm = hashAlgorithm;
|
|
this.sourceDataUri = (ulong)0L;
|
|
}
|
|
|
|
// Token: 0x17001F04 RID: 7940
|
|
// (get) Token: 0x0600C7EE RID: 51182 RVA: 0x002D464C File Offset: 0x002D284C
|
|
[Token(Token = "0x17001F04")]
|
|
public TypeOfBiometricData TypeOfBiometricData
|
|
{
|
|
[Token(Token = "0x600C7EE")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
get
|
|
{
|
|
return this.typeOfBiometricData;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001F05 RID: 7941
|
|
// (get) Token: 0x0600C7EF RID: 51183 RVA: 0x002D4660 File Offset: 0x002D2860
|
|
[Token(Token = "0x17001F05")]
|
|
public AlgorithmIdentifier HashAlgorithm
|
|
{
|
|
[Token(Token = "0x600C7EF")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
|
get
|
|
{
|
|
return this.hashAlgorithm;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001F06 RID: 7942
|
|
// (get) Token: 0x0600C7F0 RID: 51184 RVA: 0x002D4674 File Offset: 0x002D2874
|
|
[Token(Token = "0x17001F06")]
|
|
public Asn1OctetString BiometricDataHash
|
|
{
|
|
[Token(Token = "0x600C7F0")]
|
|
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
|
get
|
|
{
|
|
return this.biometricDataHash;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001F07 RID: 7943
|
|
// (get) Token: 0x0600C7F1 RID: 51185 RVA: 0x002D4688 File Offset: 0x002D2888
|
|
[Token(Token = "0x17001F07")]
|
|
public DerIA5String SourceDataUri
|
|
{
|
|
[Token(Token = "0x600C7F1")]
|
|
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
|
get
|
|
{
|
|
return this.sourceDataUri;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C7F2 RID: 51186 RVA: 0x002D469C File Offset: 0x002D289C
|
|
[Token(Token = "0x600C7F2")]
|
|
[Address(RVA = "0x2E78540", Offset = "0x2E77540", VA = "0x182E78540", 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: 0x04007D7B RID: 32123
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007D7B")]
|
|
private readonly TypeOfBiometricData typeOfBiometricData;
|
|
|
|
// Token: 0x04007D7C RID: 32124
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007D7C")]
|
|
private readonly AlgorithmIdentifier hashAlgorithm;
|
|
|
|
// Token: 0x04007D7D RID: 32125
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4007D7D")]
|
|
private readonly Asn1OctetString biometricDataHash;
|
|
|
|
// Token: 0x04007D7E RID: 32126
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4007D7E")]
|
|
private readonly DerIA5String sourceDataUri;
|
|
}
|
|
}
|