Veterinary Assistant Surgeon The Diffie-Hellman key exchange algorithm is particularly susceptible to a Man-in-the-Middle (MITM) attack if the authenticity of the communicating parties is not verified (e.g., through digital signatures). While RSA is primarily an encryption/ digital signature algorithm, its implementation in key exchange protocols can also be subject to MITM attacks if not properly secured.