Files
27Aug2021-Cpp2IL-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Security/DigestUtilities.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

405 lines
24 KiB
C#

using System;
using System.Collections;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Security
{
// Token: 0x02001A85 RID: 6789
[Token(Token = "0x2001A85")]
public sealed class DigestUtilities
{
// Token: 0x0600A080 RID: 41088 RVA: 0x002147F4 File Offset: 0x002129F4
[Token(Token = "0x600A080")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
private DigestUtilities()
{
}
// Token: 0x0600A081 RID: 41089 RVA: 0x00214808 File Offset: 0x00212A08
[Token(Token = "0x600A081")]
[Address(RVA = "0x514560", Offset = "0x513560", VA = "0x180514560")]
static DigestUtilities()
{
/*
An exception occurred when decompiling this method (0600A081)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Security.DigestUtilities::.cctor()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:IDictionary(var_2_07, call:IDictionary(Platform::CreateHashtable))
stsfld:IDictionary(DigestUtilities::algorithms, ldloc:IDictionary(var_2_07))
stsfld:IDictionary(DigestUtilities::oids, call:IDictionary(Platform::CreateHashtable))
stloc:Enum(var_4_29, call:Enum(Enums::GetArbitraryValue, call:Type(Type::GetTypeFromHandle, ldtoken:RuntimeTypeHandle(BestHTTP.SecureProtocol.Org.BouncyCastle.Security.DigestUtilities/DigestAlgorithm))))
stloc:IDictionary(var_8_3C, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_9_43, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD2))
stloc:IDictionary(var_11_4A, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_12_51, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD4))
stloc:IDictionary(var_14_58, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_15_5F, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD5))
stloc:IDictionary(var_17_66, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:IDictionary(var_19_6D, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_20_74, ldsfld:DerObjectIdentifier(OiwObjectIdentifiers::IdSha1))
stloc:IDictionary(var_22_7B, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:IDictionary(var_24_82, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_25_89, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdSha224))
stloc:IDictionary(var_27_90, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:IDictionary(var_29_97, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_30_9E, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdSha256))
stloc:IDictionary(var_32_A5, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:IDictionary(var_34_AC, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_35_B3, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdSha384))
stloc:IDictionary(var_37_BA, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:IDictionary(var_39_C1, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_40_C8, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdSha512))
stloc:IDictionary(var_42_CF, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:IDictionary(var_44_D6, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_45_DD, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdSha512_224))
stloc:IDictionary(var_47_E4, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:IDictionary(var_49_EB, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_50_F2, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdSha512_256))
stloc:IDictionary(var_52_F9, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:IDictionary(var_54_100, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_55_107, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RipeMD128))
stloc:IDictionary(var_57_10E, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:IDictionary(var_59_115, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_60_11C, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RipeMD160))
stloc:IDictionary(var_62_123, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:IDictionary(var_64_12A, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_65_131, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RipeMD256))
stloc:IDictionary(var_67_138, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:IDictionary(var_69_13F, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_70_146, ldsfld:DerObjectIdentifier(CryptoProObjectIdentifiers::GostR3411))
stloc:IDictionary(var_72_14D, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:IDictionary(var_74_154, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:IDictionary(var_76_15B, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:IDictionary(var_78_162, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:IDictionary(var_80_169, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:IDictionary(var_82_170, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_83_177, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdSha3_224))
stloc:IDictionary(var_85_17E, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_86_185, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdSha3_256))
stloc:IDictionary(var_88_18C, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_89_193, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdSha3_384))
stloc:IDictionary(var_91_19A, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_92_1A1, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdSha3_512))
stloc:IDictionary(var_94_1A8, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_95_1AF, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdShake128))
stloc:IDictionary(var_97_1B6, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_98_1BD, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdShake256))
stloc:IDictionary(var_100_1C4, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_101_1CB, ldsfld:DerObjectIdentifier(GMObjectIdentifiers::sm3))
stloc:IDictionary(var_103_1D2, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_104_1D9, ldsfld:DerObjectIdentifier(MiscObjectIdentifiers::id_blake2b160))
stloc:IDictionary(var_106_1E0, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_107_1E7, ldsfld:DerObjectIdentifier(MiscObjectIdentifiers::id_blake2b256))
stloc:IDictionary(var_109_1EE, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_110_1F5, ldsfld:DerObjectIdentifier(MiscObjectIdentifiers::id_blake2b384))
stloc:IDictionary(var_112_1FC, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_113_203, ldsfld:DerObjectIdentifier(MiscObjectIdentifiers::id_blake2b512))
stloc:IDictionary(var_115_20A, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_116_211, ldsfld:DerObjectIdentifier(MiscObjectIdentifiers::id_blake2s128))
stloc:IDictionary(var_118_218, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_119_21F, ldsfld:DerObjectIdentifier(MiscObjectIdentifiers::id_blake2s160))
stloc:IDictionary(var_121_226, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_122_22D, ldsfld:DerObjectIdentifier(MiscObjectIdentifiers::id_blake2s224))
stloc:IDictionary(var_124_234, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_125_23B, ldsfld:DerObjectIdentifier(MiscObjectIdentifiers::id_blake2s256))
stloc:IDictionary(var_127_242, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_128_249, ldsfld:DerObjectIdentifier(RosstandartObjectIdentifiers::id_tc26_gost_3411_12_256))
stloc:IDictionary(var_130_250, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_131_257, ldsfld:DerObjectIdentifier(RosstandartObjectIdentifiers::id_tc26_gost_3411_12_512))
stloc:IDictionary(var_133_25E, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_134_265, ldsfld:DerObjectIdentifier(UAObjectIdentifiers::dstu7564digest_256))
stloc:IDictionary(var_136_26C, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_137_273, ldsfld:DerObjectIdentifier(UAObjectIdentifiers::dstu7564digest_384))
stloc:IDictionary(var_139_27A, ldsfld:IDictionary(DigestUtilities::algorithms))
stloc:DerObjectIdentifier(var_140_281, ldsfld:DerObjectIdentifier(UAObjectIdentifiers::dstu7564digest_512))
stloc:IDictionary(var_142_288, ldsfld:IDictionary(DigestUtilities::oids))
stloc:DerObjectIdentifier(var_143_28F, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD2))
stloc:IDictionary(var_144_296, ldsfld:IDictionary(DigestUtilities::oids))
stloc:DerObjectIdentifier(var_145_29D, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD4))
stloc:IDictionary(var_146_2A4, ldsfld:IDictionary(DigestUtilities::oids))
stloc:DerObjectIdentifier(var_147_2AB, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD5))
stloc:IDictionary(var_148_2B2, ldsfld:IDictionary(DigestUtilities::oids))
stloc:DerObjectIdentifier(var_149_2B9, ldsfld:DerObjectIdentifier(OiwObjectIdentifiers::IdSha1))
stloc:IDictionary(var_150_2C0, ldsfld:IDictionary(DigestUtilities::oids))
stloc:DerObjectIdentifier(var_151_2C7, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdSha224))
stloc:IDictionary(var_152_2CE, ldsfld:IDictionary(DigestUtilities::oids))
}
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: 0x0600A082 RID: 41090 RVA: 0x00214AE4 File Offset: 0x00212CE4
[Token(Token = "0x600A082")]
[Address(RVA = "0x5143B0", Offset = "0x5133B0", VA = "0x1805143B0")]
public static DerObjectIdentifier GetObjectIdentifier(string mechanism)
{
/*
An exception occurred when decompiling this method (0600A082)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerObjectIdentifier BestHTTP.SecureProtocol.Org.BouncyCastle.Security.DigestUtilities::GetObjectIdentifier(System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_2E:
stloc:ArgumentNullException(var_7_38, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("mechanism")))
}
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: 0x170019A2 RID: 6562
// (get) Token: 0x0600A083 RID: 41091 RVA: 0x00214B2C File Offset: 0x00212D2C
[Token(Token = "0x170019A2")]
public static ICollection Algorithms
{
[Token(Token = "0x600A083")]
[Address(RVA = "0x516140", Offset = "0x515140", VA = "0x180516140")]
get
{
IDictionary dictionary = DigestUtilities.oids;
throw new NullReferenceException();
}
}
// Token: 0x0600A084 RID: 41092 RVA: 0x00214B44 File Offset: 0x00212D44
[Token(Token = "0x600A084")]
[Address(RVA = "0x513B00", Offset = "0x512B00", VA = "0x180513B00")]
public static IDigest GetDigest(DerObjectIdentifier id)
{
return DigestUtilities.GetDigest(id.identifier);
}
// Token: 0x0600A085 RID: 41093 RVA: 0x00214B64 File Offset: 0x00212D64
[Token(Token = "0x600A085")]
[Address(RVA = "0x513B60", Offset = "0x512B60", VA = "0x180513B60")]
public static IDigest GetDigest(string algorithm)
{
/*
An exception occurred when decompiling this method (0600A085)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IDigest BestHTTP.SecureProtocol.Org.BouncyCastle.Security.DigestUtilities::GetDigest(System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_18D:
stloc:SecurityUtilityException(var_69_1A2, newobj:SecurityUtilityException(SecurityUtilityException::.ctor, call:string(string::Concat, ldstr:string("Digest "), ldloc:string(var_0_06), ldstr:string(" not recognised."))))
}
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.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: 0x0600A086 RID: 41094 RVA: 0x00214D14 File Offset: 0x00212F14
[Token(Token = "0x600A086")]
[Address(RVA = "0x513A50", Offset = "0x512A50", VA = "0x180513A50")]
public static string GetAlgorithmName(DerObjectIdentifier oid)
{
IDictionary dictionary = DigestUtilities.algorithms;
throw new NullReferenceException();
}
// Token: 0x0600A087 RID: 41095 RVA: 0x00214D2C File Offset: 0x00212F2C
[Token(Token = "0x600A087")]
[Address(RVA = "0x513820", Offset = "0x512820", VA = "0x180513820")]
public static byte[] CalculateDigest(string algorithm, byte[] input)
{
IDigest digest = DigestUtilities.GetDigest(algorithm);
int length = input.Length;
return DigestUtilities.DoFinal(digest);
}
// Token: 0x0600A088 RID: 41096 RVA: 0x00214D54 File Offset: 0x00212F54
[Token(Token = "0x600A088")]
[Address(RVA = "0x513960", Offset = "0x512960", VA = "0x180513960")]
public static byte[] DoFinal(IDigest digest)
{
byte[] array = new byte[0];
int num = 0;
num += num;
num++;
return array;
}
// Token: 0x0600A089 RID: 41097 RVA: 0x00214D80 File Offset: 0x00212F80
[Token(Token = "0x600A089")]
[Address(RVA = "0x5138C0", Offset = "0x5128C0", VA = "0x1805138C0")]
public static byte[] DoFinal(IDigest digest, byte[] input)
{
int length = input.Length;
return DigestUtilities.DoFinal(digest);
}
// Token: 0x04006B68 RID: 27496
[Token(Token = "0x4006B68")]
private static readonly IDictionary algorithms;
// Token: 0x04006B69 RID: 27497
[Token(Token = "0x4006B69")]
private static readonly IDictionary oids;
// Token: 0x02001A86 RID: 6790
[Token(Token = "0x2001A86")]
private enum DigestAlgorithm
{
// Token: 0x04006B6B RID: 27499
[Token(Token = "0x4006B6B")]
BLAKE2B_160,
// Token: 0x04006B6C RID: 27500
[Token(Token = "0x4006B6C")]
BLAKE2B_256,
// Token: 0x04006B6D RID: 27501
[Token(Token = "0x4006B6D")]
BLAKE2B_384,
// Token: 0x04006B6E RID: 27502
[Token(Token = "0x4006B6E")]
BLAKE2B_512,
// Token: 0x04006B6F RID: 27503
[Token(Token = "0x4006B6F")]
BLAKE2S_128,
// Token: 0x04006B70 RID: 27504
[Token(Token = "0x4006B70")]
BLAKE2S_160,
// Token: 0x04006B71 RID: 27505
[Token(Token = "0x4006B71")]
BLAKE2S_224,
// Token: 0x04006B72 RID: 27506
[Token(Token = "0x4006B72")]
BLAKE2S_256,
// Token: 0x04006B73 RID: 27507
[Token(Token = "0x4006B73")]
DSTU7564_256,
// Token: 0x04006B74 RID: 27508
[Token(Token = "0x4006B74")]
DSTU7564_384,
// Token: 0x04006B75 RID: 27509
[Token(Token = "0x4006B75")]
DSTU7564_512,
// Token: 0x04006B76 RID: 27510
[Token(Token = "0x4006B76")]
GOST3411,
// Token: 0x04006B77 RID: 27511
[Token(Token = "0x4006B77")]
GOST3411_2012_256,
// Token: 0x04006B78 RID: 27512
[Token(Token = "0x4006B78")]
GOST3411_2012_512,
// Token: 0x04006B79 RID: 27513
[Token(Token = "0x4006B79")]
KECCAK_224,
// Token: 0x04006B7A RID: 27514
[Token(Token = "0x4006B7A")]
KECCAK_256,
// Token: 0x04006B7B RID: 27515
[Token(Token = "0x4006B7B")]
KECCAK_288,
// Token: 0x04006B7C RID: 27516
[Token(Token = "0x4006B7C")]
KECCAK_384,
// Token: 0x04006B7D RID: 27517
[Token(Token = "0x4006B7D")]
KECCAK_512,
// Token: 0x04006B7E RID: 27518
[Token(Token = "0x4006B7E")]
MD2,
// Token: 0x04006B7F RID: 27519
[Token(Token = "0x4006B7F")]
MD4,
// Token: 0x04006B80 RID: 27520
[Token(Token = "0x4006B80")]
MD5,
// Token: 0x04006B81 RID: 27521
[Token(Token = "0x4006B81")]
NONE,
// Token: 0x04006B82 RID: 27522
[Token(Token = "0x4006B82")]
RIPEMD128,
// Token: 0x04006B83 RID: 27523
[Token(Token = "0x4006B83")]
RIPEMD160,
// Token: 0x04006B84 RID: 27524
[Token(Token = "0x4006B84")]
RIPEMD256,
// Token: 0x04006B85 RID: 27525
[Token(Token = "0x4006B85")]
RIPEMD320,
// Token: 0x04006B86 RID: 27526
[Token(Token = "0x4006B86")]
SHA_1,
// Token: 0x04006B87 RID: 27527
[Token(Token = "0x4006B87")]
SHA_224,
// Token: 0x04006B88 RID: 27528
[Token(Token = "0x4006B88")]
SHA_256,
// Token: 0x04006B89 RID: 27529
[Token(Token = "0x4006B89")]
SHA_384,
// Token: 0x04006B8A RID: 27530
[Token(Token = "0x4006B8A")]
SHA_512,
// Token: 0x04006B8B RID: 27531
[Token(Token = "0x4006B8B")]
SHA_512_224,
// Token: 0x04006B8C RID: 27532
[Token(Token = "0x4006B8C")]
SHA_512_256,
// Token: 0x04006B8D RID: 27533
[Token(Token = "0x4006B8D")]
SHA3_224,
// Token: 0x04006B8E RID: 27534
[Token(Token = "0x4006B8E")]
SHA3_256,
// Token: 0x04006B8F RID: 27535
[Token(Token = "0x4006B8F")]
SHA3_384,
// Token: 0x04006B90 RID: 27536
[Token(Token = "0x4006B90")]
SHA3_512,
// Token: 0x04006B91 RID: 27537
[Token(Token = "0x4006B91")]
SHAKE128,
// Token: 0x04006B92 RID: 27538
[Token(Token = "0x4006B92")]
SHAKE256,
// Token: 0x04006B93 RID: 27539
[Token(Token = "0x4006B93")]
SM3,
// Token: 0x04006B94 RID: 27540
[Token(Token = "0x4006B94")]
TIGER,
// Token: 0x04006B95 RID: 27541
[Token(Token = "0x4006B95")]
WHIRLPOOL
}
}
}