Files
Apr2020-Cpp2Il-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Crypto/Digests/Sha512Digest.cs
T
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

126 lines
5.7 KiB
C#

using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Utilities;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Digests
{
// Token: 0x02001CF9 RID: 7417
[Token(Token = "0x2001CF9")]
public class Sha512Digest : LongDigest
{
// Token: 0x0600BBA5 RID: 48037 RVA: 0x002A8A34 File Offset: 0x002A6C34
[Token(Token = "0x600BBA5")]
[Address(RVA = "0x1FE1DD0", Offset = "0x1FE0BD0", VA = "0x181FE1DD0")]
public Sha512Digest()
{
}
// Token: 0x0600BBA6 RID: 48038 RVA: 0x002A8A48 File Offset: 0x002A6C48
[Token(Token = "0x600BBA6")]
[Address(RVA = "0x1FE1D60", Offset = "0x1FE0B60", VA = "0x181FE1D60")]
public Sha512Digest(Sha512Digest t)
: base(t)
{
}
// Token: 0x17001D21 RID: 7457
// (get) Token: 0x0600BBA7 RID: 48039 RVA: 0x002A8A5C File Offset: 0x002A6C5C
[Token(Token = "0x17001D21")]
public override string AlgorithmName
{
[Token(Token = "0x600BBA7")]
[Address(RVA = "0x1FE1E30", Offset = "0x1FE0C30", VA = "0x181FE1E30", Slot = "14")]
get
{
return "SHA-512";
}
}
// Token: 0x0600BBA8 RID: 48040 RVA: 0x002A8A70 File Offset: 0x002A6C70
[Token(Token = "0x600BBA8")]
[Address(RVA = "0x1B31440", Offset = "0x1B30240", VA = "0x181B31440", Slot = "15")]
public override int GetDigestSize()
{
return 64;
}
// Token: 0x0600BBA9 RID: 48041 RVA: 0x002A8A80 File Offset: 0x002A6C80
[Token(Token = "0x600BBA9")]
[Address(RVA = "0x1FE1B50", Offset = "0x1FE0950", VA = "0x181FE1B50", Slot = "16")]
public override int DoFinal(byte[] output, int outOff)
{
base.Finish();
Pack.UInt64_To_BE(this.H1, output, outOff);
Pack.UInt64_To_BE(this.H2, output, outOff);
Pack.UInt64_To_BE(this.H3, output, outOff);
Pack.UInt64_To_BE(this.H4, output, outOff);
Pack.UInt64_To_BE(this.H5, output, outOff);
Pack.UInt64_To_BE(this.H6, output, outOff);
Pack.UInt64_To_BE(this.H7, output, outOff);
Pack.UInt64_To_BE(this.H8, output, outOff);
return 64;
}
// Token: 0x0600BBAA RID: 48042 RVA: 0x002A8B00 File Offset: 0x002A6D00
[Token(Token = "0x600BBAA")]
[Address(RVA = "0x1FE1CD0", Offset = "0x1FE0AD0", VA = "0x181FE1CD0", Slot = "13")]
public override void Reset()
{
base.Reset();
this.H1 = (ulong)7640891576956012808L;
this.H2 = (ulong)(-4942790177534073029L);
this.H3 = (ulong)4354685564936845355L;
this.H4 = (ulong)(-6534734903238641935L);
this.H5 = (ulong)5840696475078001361L;
this.H6 = (ulong)(-7276294671716946913L);
this.H7 = (ulong)2270897969802886507L;
this.H8 = (ulong)6620516959819538809L;
}
// Token: 0x0600BBAB RID: 48043 RVA: 0x002A8B94 File Offset: 0x002A6D94
[Token(Token = "0x600BBAB")]
[Address(RVA = "0x1FE1AC0", Offset = "0x1FE08C0", VA = "0x181FE1AC0", Slot = "17")]
public override IMemoable Copy()
{
/*
An exception occurred when decompiling this method (0600BBAB)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IMemoable BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Digests.Sha512Digest::Copy()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:Sha512Digest(var_0_06, newobj:Sha512Digest(Sha512Digest::.ctor, ldloc:Sha512Digest(this)))
}
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 1660
*/;
}
// Token: 0x0600BBAC RID: 48044 RVA: 0x002A8BA8 File Offset: 0x002A6DA8
[Token(Token = "0x600BBAC")]
[Address(RVA = "0x1FE1C30", Offset = "0x1FE0A30", VA = "0x181FE1C30", Slot = "18")]
public override void Reset(IMemoable other)
{
do
{
if (other == 0)
{
}
}
while (other == 0);
}
// Token: 0x04007737 RID: 30519
[Token(Token = "0x4007737")]
private const int DigestLength = 64;
}
}