scripts
This commit is contained in:
+125
@@ -0,0 +1,125 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Utilities;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Digests
|
||||
{
|
||||
// Token: 0x0200171B RID: 5915
|
||||
[Token(Token = "0x200171B")]
|
||||
[StructLayout(3)]
|
||||
public class Sha384Digest : LongDigest
|
||||
{
|
||||
// Token: 0x06009FC3 RID: 40899 RVA: 0x002507D4 File Offset: 0x0024E9D4
|
||||
[Token(Token = "0x6009FC3")]
|
||||
[Address(RVA = "0x224F570", Offset = "0x224DF70", VA = "0x18224F570")]
|
||||
public Sha384Digest()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009FC4 RID: 40900 RVA: 0x002507E8 File Offset: 0x0024E9E8
|
||||
[Token(Token = "0x6009FC4")]
|
||||
[Address(RVA = "0x224F500", Offset = "0x224DF00", VA = "0x18224F500")]
|
||||
public Sha384Digest(Sha384Digest t)
|
||||
: base(t)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x1700191F RID: 6431
|
||||
// (get) Token: 0x06009FC5 RID: 40901 RVA: 0x002507FC File Offset: 0x0024E9FC
|
||||
[Token(Token = "0x1700191F")]
|
||||
public override string AlgorithmName
|
||||
{
|
||||
[Token(Token = "0x6009FC5")]
|
||||
[Address(RVA = "0x224F5D0", Offset = "0x224DFD0", VA = "0x18224F5D0", Slot = "14")]
|
||||
get
|
||||
{
|
||||
return "SHA-384";
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009FC6 RID: 40902 RVA: 0x00250810 File Offset: 0x0024EA10
|
||||
[Token(Token = "0x6009FC6")]
|
||||
[Address(RVA = "0x199C380", Offset = "0x199AD80", VA = "0x18199C380", Slot = "15")]
|
||||
public override int GetDigestSize()
|
||||
{
|
||||
return 48;
|
||||
}
|
||||
|
||||
// Token: 0x06009FC7 RID: 40903 RVA: 0x00250820 File Offset: 0x0024EA20
|
||||
[Token(Token = "0x6009FC7")]
|
||||
[Address(RVA = "0x224F310", Offset = "0x224DD10", VA = "0x18224F310", 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: 0x06009FC8 RID: 40904 RVA: 0x00250884 File Offset: 0x0024EA84
|
||||
[Token(Token = "0x6009FC8")]
|
||||
[Address(RVA = "0x224F3D0", Offset = "0x224DDD0", VA = "0x18224F3D0", 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: 0x06009FC9 RID: 40905 RVA: 0x00250918 File Offset: 0x0024EB18
|
||||
[Token(Token = "0x6009FC9")]
|
||||
[Address(RVA = "0x224F280", Offset = "0x224DC80", VA = "0x18224F280", Slot = "17")]
|
||||
public override IMemoable Copy()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009FC9)
|
||||
|
||||
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: 0x06009FCA RID: 40906 RVA: 0x0025092C File Offset: 0x0024EB2C
|
||||
[Token(Token = "0x6009FCA")]
|
||||
[Address(RVA = "0x224F460", Offset = "0x224DE60", VA = "0x18224F460", Slot = "18")]
|
||||
public override void Reset(IMemoable other)
|
||||
{
|
||||
do
|
||||
{
|
||||
if (other == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (other == 0);
|
||||
}
|
||||
|
||||
// Token: 0x040068F3 RID: 26867
|
||||
[Token(Token = "0x40068F3")]
|
||||
private const int DigestLength = 48;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user