public static void DHLibriary_EqualsKeys_ReturnTrue() { DHServer server = new DHServer(); DHClient client = new DHClient(server.PublicKey, server.Divider, server.Generator); server.CalculateKey(client.PublicKey); Assert.AreEqual(server.CommonKey, client.CommonKey); }
/// <summary> /// Set value of answer from client /// </summary> /// <param name="answer"></param> public void SetClientPublicKey(string answer) { _server.CalculateKey(answer); SetKeyOfEncrypt(); }