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: 0x02001CF8 RID: 7416
|
|
[Token(Token = "0x2001CF8")]
|
|
public class Sha384Digest : LongDigest
|
|
{
|
|
// Token: 0x0600BB9D RID: 48029 RVA: 0x002A88C4 File Offset: 0x002A6AC4
|
|
[Token(Token = "0x600BB9D")]
|
|
[Address(RVA = "0x1FE1500", Offset = "0x1FE0300", VA = "0x181FE1500")]
|
|
public Sha384Digest()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600BB9E RID: 48030 RVA: 0x002A88D8 File Offset: 0x002A6AD8
|
|
[Token(Token = "0x600BB9E")]
|
|
[Address(RVA = "0x1FE1490", Offset = "0x1FE0290", VA = "0x181FE1490")]
|
|
public Sha384Digest(Sha384Digest t)
|
|
: base(t)
|
|
{
|
|
}
|
|
|
|
// Token: 0x17001D20 RID: 7456
|
|
// (get) Token: 0x0600BB9F RID: 48031 RVA: 0x002A88EC File Offset: 0x002A6AEC
|
|
[Token(Token = "0x17001D20")]
|
|
public override string AlgorithmName
|
|
{
|
|
[Token(Token = "0x600BB9F")]
|
|
[Address(RVA = "0x1FE1560", Offset = "0x1FE0360", VA = "0x181FE1560", Slot = "14")]
|
|
get
|
|
{
|
|
return "SHA-384";
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600BBA0 RID: 48032 RVA: 0x002A8900 File Offset: 0x002A6B00
|
|
[Token(Token = "0x600BBA0")]
|
|
[Address(RVA = "0x55FB10", Offset = "0x55E910", VA = "0x18055FB10", Slot = "15")]
|
|
public override int GetDigestSize()
|
|
{
|
|
return 48;
|
|
}
|
|
|
|
// Token: 0x0600BBA1 RID: 48033 RVA: 0x002A8910 File Offset: 0x002A6B10
|
|
[Token(Token = "0x600BBA1")]
|
|
[Address(RVA = "0x1FE12A0", Offset = "0x1FE00A0", VA = "0x181FE12A0", 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: 0x0600BBA2 RID: 48034 RVA: 0x002A8974 File Offset: 0x002A6B74
|
|
[Token(Token = "0x600BBA2")]
|
|
[Address(RVA = "0x1FE1360", Offset = "0x1FE0160", VA = "0x181FE1360", 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: 0x0600BBA3 RID: 48035 RVA: 0x002A8A08 File Offset: 0x002A6C08
|
|
[Token(Token = "0x600BBA3")]
|
|
[Address(RVA = "0x1FE1210", Offset = "0x1FE0010", VA = "0x181FE1210", Slot = "17")]
|
|
public override IMemoable Copy()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600BBA3)
|
|
|
|
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 1660
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600BBA4 RID: 48036 RVA: 0x002A8A1C File Offset: 0x002A6C1C
|
|
[Token(Token = "0x600BBA4")]
|
|
[Address(RVA = "0x1FE13F0", Offset = "0x1FE01F0", VA = "0x181FE13F0", Slot = "18")]
|
|
public override void Reset(IMemoable other)
|
|
{
|
|
do
|
|
{
|
|
if (other == 0)
|
|
{
|
|
}
|
|
}
|
|
while (other == 0);
|
|
}
|
|
|
|
// Token: 0x04007736 RID: 30518
|
|
[Token(Token = "0x4007736")]
|
|
private const int DigestLength = 48;
|
|
}
|
|
}
|