I working on a Client/Server application who use encryption system, RSA to negociate a passphrase and AES to dialog, the encryption is ok, when the encryption has been negotiate , i set the public variable encryption = Encrypt.AES;
, send a string to server and listen for his answer.
When client receive data i use a switch-statement by encryption
But, after a step-by-step debugging there is something strange, the switch-statement go to the wrong case.
Why the switch statement isn't working?
public enum Encrypt
{
NONE, RSA, AES
}