using System; using System.Runtime.InteropServices; using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Digests { // Token: 0x02001716 RID: 5910 [Token(Token = "0x2001716")] [StructLayout(3)] public class Sha3Digest : KeccakDigest { // Token: 0x06009F74 RID: 40820 RVA: 0x0024EDD0 File Offset: 0x0024CFD0 [Token(Token = "0x6009F74")] [Address(RVA = "0x224F600", Offset = "0x224E000", VA = "0x18224F600")] private static int CheckBitLength(int bitLength) { if (bitLength <= 256 || bitLength != 384) { } return bitLength; } // Token: 0x06009F75 RID: 40821 RVA: 0x0024EE04 File Offset: 0x0024D004 [Token(Token = "0x6009F75")] [Address(RVA = "0x224FA50", Offset = "0x224E450", VA = "0x18224FA50")] public Sha3Digest() : base(256) { } // Token: 0x06009F76 RID: 40822 RVA: 0x0024EE1C File Offset: 0x0024D01C [Token(Token = "0x6009F76")] [Address(RVA = "0x224F950", Offset = "0x224E350", VA = "0x18224F950")] public Sha3Digest(int bitLength) { if (bitLength <= 256 || bitLength != 384) { } base..ctor(bitLength); } // Token: 0x06009F77 RID: 40823 RVA: 0x0024EE4C File Offset: 0x0024D04C [Token(Token = "0x6009F77")] [Address(RVA = "0x224F8E0", Offset = "0x224E2E0", VA = "0x18224F8E0")] public Sha3Digest(Sha3Digest source) : base(source) { } // Token: 0x1700191A RID: 6426 // (get) Token: 0x06009F78 RID: 40824 RVA: 0x0024EE60 File Offset: 0x0024D060 [Token(Token = "0x1700191A")] public override string AlgorithmName { [Token(Token = "0x6009F78")] [Address(RVA = "0x224FAD0", Offset = "0x224E4D0", VA = "0x18224FAD0", Slot = "13")] get { int fixedOutputLength = this.fixedOutputLength; return "SHA3-" + fixedOutputLength; } } // Token: 0x06009F79 RID: 40825 RVA: 0x0024EE80 File Offset: 0x0024D080 [Token(Token = "0x6009F79")] [Address(RVA = "0x224F890", Offset = "0x224E290", VA = "0x18224F890", Slot = "17")] public override int DoFinal(byte[] output, int outOff) { base.AbsorbBits(2, 2); return base.DoFinal(output, outOff); } // Token: 0x06009F7A RID: 40826 RVA: 0x0024EEA0 File Offset: 0x0024D0A0 [Token(Token = "0x6009F7A")] [Address(RVA = "0x224F750", Offset = "0x224E150", VA = "0x18224F750", 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: 0x06009F7B RID: 40827 RVA: 0x0024EEE4 File Offset: 0x0024D0E4 [Token(Token = "0x6009F7B")] [Address(RVA = "0x224F6C0", Offset = "0x224E0C0", VA = "0x18224F6C0", Slot = "21")] public override IMemoable Copy() { /* An exception occurred when decompiling this method (06009F7B) 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 */; } } }