From d501cc8d49b9ebb167731e2e9502595bef750c8f Mon Sep 17 00:00:00 2001 From: "m.navaei" Date: Sun, 18 Feb 2018 15:04:26 +0330 Subject: [PATCH] fix newnonce --- Apps/TlgListenerApplication/Program.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Apps/TlgListenerApplication/Program.cs b/Apps/TlgListenerApplication/Program.cs index fb16028..c43629d 100644 --- a/Apps/TlgListenerApplication/Program.cs +++ b/Apps/TlgListenerApplication/Program.cs @@ -114,8 +114,10 @@ namespace TlgListenerApplication nonceFromClient = binaryReader2.ReadBytes(16); servernonce = binaryReader2.ReadBytes(16); var useless = binaryReader2.ReadBytes(13); - var ciphertext = binaryReader2.ReadBytes(256); - + var ciphertext = binaryReader2.ReadBytes(500); + var newnoncetemp = new byte[32]; + Array.Copy(ciphertext, ciphertext.Length - 32, newnoncetemp,0,32); + //ciphertext.CopyTo(newnoncetemp, ciphertext.Length - 32); } } else