m
This commit is contained in:
+125
@@ -0,0 +1,125 @@
|
||||
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: 0x02001DD9 RID: 7641
|
||||
[Token(Token = "0x2001DD9")]
|
||||
public class Sha512Digest : LongDigest
|
||||
{
|
||||
// Token: 0x0600BF73 RID: 49011 RVA: 0x002B12EC File Offset: 0x002AF4EC
|
||||
[Token(Token = "0x600BF73")]
|
||||
[Address(RVA = "0x290EA60", Offset = "0x290DA60", VA = "0x18290EA60")]
|
||||
public Sha512Digest()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600BF74 RID: 49012 RVA: 0x002B1300 File Offset: 0x002AF500
|
||||
[Token(Token = "0x600BF74")]
|
||||
[Address(RVA = "0x290E9F0", Offset = "0x290D9F0", VA = "0x18290E9F0")]
|
||||
public Sha512Digest(Sha512Digest t)
|
||||
: base(t)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x17001DBE RID: 7614
|
||||
// (get) Token: 0x0600BF75 RID: 49013 RVA: 0x002B1314 File Offset: 0x002AF514
|
||||
[Token(Token = "0x17001DBE")]
|
||||
public override string AlgorithmName
|
||||
{
|
||||
[Token(Token = "0x600BF75")]
|
||||
[Address(RVA = "0x290EAC0", Offset = "0x290DAC0", VA = "0x18290EAC0", Slot = "14")]
|
||||
get
|
||||
{
|
||||
return "SHA-512";
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600BF76 RID: 49014 RVA: 0x002B1328 File Offset: 0x002AF528
|
||||
[Token(Token = "0x600BF76")]
|
||||
[Address(RVA = "0x8BCFC0", Offset = "0x8BBFC0", VA = "0x1808BCFC0", Slot = "15")]
|
||||
public override int GetDigestSize()
|
||||
{
|
||||
return 64;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF77 RID: 49015 RVA: 0x002B1338 File Offset: 0x002AF538
|
||||
[Token(Token = "0x600BF77")]
|
||||
[Address(RVA = "0x290E7E0", Offset = "0x290D7E0", VA = "0x18290E7E0", 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: 0x0600BF78 RID: 49016 RVA: 0x002B13B8 File Offset: 0x002AF5B8
|
||||
[Token(Token = "0x600BF78")]
|
||||
[Address(RVA = "0x290E960", Offset = "0x290D960", VA = "0x18290E960", 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: 0x0600BF79 RID: 49017 RVA: 0x002B144C File Offset: 0x002AF64C
|
||||
[Token(Token = "0x600BF79")]
|
||||
[Address(RVA = "0x290E750", Offset = "0x290D750", VA = "0x18290E750", Slot = "17")]
|
||||
public override IMemoable Copy()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600BF79)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF7A RID: 49018 RVA: 0x002B1460 File Offset: 0x002AF660
|
||||
[Token(Token = "0x600BF7A")]
|
||||
[Address(RVA = "0x290E8C0", Offset = "0x290D8C0", VA = "0x18290E8C0", Slot = "18")]
|
||||
public override void Reset(IMemoable other)
|
||||
{
|
||||
do
|
||||
{
|
||||
if (other == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (other == 0);
|
||||
}
|
||||
|
||||
// Token: 0x040078F0 RID: 30960
|
||||
[Token(Token = "0x40078F0")]
|
||||
private const int DigestLength = 64;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user