The correct order is: creating a plaintext, applying the key on the plaintext, sending the ciphertext, receiving the ciphertext, applying the key on the ciphertext, obtaining the plaintext.