mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
fix newnonce
This commit is contained in:
parent
1cb332adc5
commit
d501cc8d49
|
|
@ -114,8 +114,10 @@ namespace TlgListenerApplication
|
||||||
nonceFromClient = binaryReader2.ReadBytes(16);
|
nonceFromClient = binaryReader2.ReadBytes(16);
|
||||||
servernonce = binaryReader2.ReadBytes(16);
|
servernonce = binaryReader2.ReadBytes(16);
|
||||||
var useless = binaryReader2.ReadBytes(13);
|
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
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue