Files
27Aug2021-Cpp2IL-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Crypto/Digests/Sha3Digest.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

113 lines
5.2 KiB
C#

using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Digests
{
// Token: 0x02001DD3 RID: 7635
[Token(Token = "0x2001DD3")]
public class Sha3Digest : KeccakDigest
{
// Token: 0x0600BF1C RID: 48924 RVA: 0x002AF758 File Offset: 0x002AD958
[Token(Token = "0x600BF1C")]
[Address(RVA = "0x290E220", Offset = "0x290D220", VA = "0x18290E220")]
private static int CheckBitLength(int bitLength)
{
if (bitLength <= 256 || bitLength != 384)
{
}
return bitLength;
}
// Token: 0x0600BF1D RID: 48925 RVA: 0x002AF78C File Offset: 0x002AD98C
[Token(Token = "0x600BF1D")]
[Address(RVA = "0x290E670", Offset = "0x290D670", VA = "0x18290E670")]
public Sha3Digest()
: base(256)
{
}
// Token: 0x0600BF1E RID: 48926 RVA: 0x002AF7A4 File Offset: 0x002AD9A4
[Token(Token = "0x600BF1E")]
[Address(RVA = "0x290E570", Offset = "0x290D570", VA = "0x18290E570")]
public Sha3Digest(int bitLength)
{
if (bitLength <= 256 || bitLength != 384)
{
}
base..ctor(bitLength);
}
// Token: 0x0600BF1F RID: 48927 RVA: 0x002AF7D4 File Offset: 0x002AD9D4
[Token(Token = "0x600BF1F")]
[Address(RVA = "0x290E500", Offset = "0x290D500", VA = "0x18290E500")]
public Sha3Digest(Sha3Digest source)
: base(source)
{
}
// Token: 0x17001DB8 RID: 7608
// (get) Token: 0x0600BF20 RID: 48928 RVA: 0x002AF7E8 File Offset: 0x002AD9E8
[Token(Token = "0x17001DB8")]
public override string AlgorithmName
{
[Token(Token = "0x600BF20")]
[Address(RVA = "0x290E6F0", Offset = "0x290D6F0", VA = "0x18290E6F0", Slot = "13")]
get
{
int fixedOutputLength = this.fixedOutputLength;
return "SHA3-" + fixedOutputLength;
}
}
// Token: 0x0600BF21 RID: 48929 RVA: 0x002AF808 File Offset: 0x002ADA08
[Token(Token = "0x600BF21")]
[Address(RVA = "0x290E4B0", Offset = "0x290D4B0", VA = "0x18290E4B0", Slot = "17")]
public override int DoFinal(byte[] output, int outOff)
{
base.AbsorbBits(2, 2);
return base.DoFinal(output, outOff);
}
// Token: 0x0600BF22 RID: 48930 RVA: 0x002AF828 File Offset: 0x002ADA28
[Token(Token = "0x600BF22")]
[Address(RVA = "0x290E370", Offset = "0x290D370", VA = "0x18290E370", Slot = "18")]
protected override int DoFinal(byte[] output, int outOff, byte partialByte, int partialBits)
{
int num = 0;
byte[] array = new byte[0];
uint num2;
array[0] = (byte)num2;
int num3 = 0;
base.Absorb(array, num3, 1);
return base.DoFinal(output, outOff, (byte)num2, num);
}
// Token: 0x0600BF23 RID: 48931 RVA: 0x002AF86C File Offset: 0x002ADA6C
[Token(Token = "0x600BF23")]
[Address(RVA = "0x290E2E0", Offset = "0x290D2E0", VA = "0x18290E2E0", Slot = "21")]
public override IMemoable Copy()
{
/*
An exception occurred when decompiling this method (0600BF23)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IMemoable BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Digests.Sha3Digest::Copy()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:Sha3Digest(var_0_06, newobj:Sha3Digest(Sha3Digest::.ctor, ldloc:Sha3Digest[exp:int32](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
*/;
}
}
}