private void HandShakeRequestHandler(HandShakeRequest request) { EncryptionkeyObject encryptionkeyObject = new EncryptionkeyObject(); encryptionkeyObject.FirstX = BitConverter.ToDouble(UtilityFunction.DecryptByte(privateKey, request.FirstX), 0); encryptionkeyObject.U = BitConverter.ToDouble(UtilityFunction.DecryptByte(privateKey, request.U), 0); encryptionkeyObject.SelectChoas = (ChoasEnum)BitConverter.ToInt16(UtilityFunction.DecryptByte(privateKey, request.SelectChoas), 0); if (clientPublicEncryptionkeys.ContainsKey(request.SenderClient)) { clientPublicEncryptionkeys[request.SenderClient] = encryptionkeyObject; } else { clientPublicEncryptionkeys.Add(request.SenderClient, encryptionkeyObject); } }