124 lines
5.6 KiB
C#
124 lines
5.6 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: 0x02001DD8 RID: 7640
|
|
[Token(Token = "0x2001DD8")]
|
|
public class Sha384Digest : LongDigest
|
|
{
|
|
// Token: 0x0600BF6B RID: 49003 RVA: 0x002B117C File Offset: 0x002AF37C
|
|
[Token(Token = "0x600BF6B")]
|
|
[Address(RVA = "0x290E190", Offset = "0x290D190", VA = "0x18290E190")]
|
|
public Sha384Digest()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600BF6C RID: 49004 RVA: 0x002B1190 File Offset: 0x002AF390
|
|
[Token(Token = "0x600BF6C")]
|
|
[Address(RVA = "0x290E120", Offset = "0x290D120", VA = "0x18290E120")]
|
|
public Sha384Digest(Sha384Digest t)
|
|
: base(t)
|
|
{
|
|
}
|
|
|
|
// Token: 0x17001DBD RID: 7613
|
|
// (get) Token: 0x0600BF6D RID: 49005 RVA: 0x002B11A4 File Offset: 0x002AF3A4
|
|
[Token(Token = "0x17001DBD")]
|
|
public override string AlgorithmName
|
|
{
|
|
[Token(Token = "0x600BF6D")]
|
|
[Address(RVA = "0x290E1F0", Offset = "0x290D1F0", VA = "0x18290E1F0", Slot = "14")]
|
|
get
|
|
{
|
|
return "SHA-384";
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600BF6E RID: 49006 RVA: 0x002B11B8 File Offset: 0x002AF3B8
|
|
[Token(Token = "0x600BF6E")]
|
|
[Address(RVA = "0xC480A0", Offset = "0xC470A0", VA = "0x180C480A0", Slot = "15")]
|
|
public override int GetDigestSize()
|
|
{
|
|
return 48;
|
|
}
|
|
|
|
// Token: 0x0600BF6F RID: 49007 RVA: 0x002B11C8 File Offset: 0x002AF3C8
|
|
[Token(Token = "0x600BF6F")]
|
|
[Address(RVA = "0x290DF30", Offset = "0x290CF30", VA = "0x18290DF30", 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);
|
|
return 48;
|
|
}
|
|
|
|
// Token: 0x0600BF70 RID: 49008 RVA: 0x002B122C File Offset: 0x002AF42C
|
|
[Token(Token = "0x600BF70")]
|
|
[Address(RVA = "0x290DFF0", Offset = "0x290CFF0", VA = "0x18290DFF0", Slot = "13")]
|
|
public override void Reset()
|
|
{
|
|
base.Reset();
|
|
this.H1 = (ulong)(-3766243637369397544L);
|
|
this.H2 = (ulong)7105036623409894663L;
|
|
this.H3 = (ulong)(-7973340178411365097L);
|
|
this.H4 = (ulong)1526699215303891257L;
|
|
this.H5 = (ulong)7436329637833083697L;
|
|
this.H6 = (ulong)(-8163818279084223215L);
|
|
this.H7 = (ulong)(-2662702644619276377L);
|
|
this.H8 = (ulong)5167115440072839076L;
|
|
}
|
|
|
|
// Token: 0x0600BF71 RID: 49009 RVA: 0x002B12C0 File Offset: 0x002AF4C0
|
|
[Token(Token = "0x600BF71")]
|
|
[Address(RVA = "0x290DEA0", Offset = "0x290CEA0", VA = "0x18290DEA0", Slot = "17")]
|
|
public override IMemoable Copy()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600BF71)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IMemoable BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Digests.Sha384Digest::Copy()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:Sha384Digest(var_0_06, newobj:Sha384Digest(Sha384Digest::.ctor, ldloc:Sha384Digest(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: 0x0600BF72 RID: 49010 RVA: 0x002B12D4 File Offset: 0x002AF4D4
|
|
[Token(Token = "0x600BF72")]
|
|
[Address(RVA = "0x290E080", Offset = "0x290D080", VA = "0x18290E080", Slot = "18")]
|
|
public override void Reset(IMemoable other)
|
|
{
|
|
do
|
|
{
|
|
if (other == 0)
|
|
{
|
|
}
|
|
}
|
|
while (other == 0);
|
|
}
|
|
|
|
// Token: 0x040078EF RID: 30959
|
|
[Token(Token = "0x40078EF")]
|
|
private const int DigestLength = 48;
|
|
}
|
|
}
|