Suppose A has (public key,private key) <eA,dA> and B keys <eB,dB> |
A transmits a message mA to B encrypting it with B's public key eB |
B decrypts this message and reads it using private key dB |
Similarly B sends a message mB to A encrypting with eA which A decrypts with private key dA |
Plaintext |
Encryption |
Public Key |
Private Key |