I am looking for such an cipher algorithm that is based on asymmetric cryptography where the order of encrypting is irrelevant.
For example: There is a message "x", Bob encrypt that message with his key and passes result "zz" to Alice. Alice encrypt that message with her key and receives: "xyz". There is a message "x". Alice encrypt that message with her key and passes result "ui" to Bob. Bob encrypts with his key and receives "xyz".
What is the most important, is that resulting encrypted text is the same.
I have heard that maybe homomorphic ciphers have such properties and have tried with Elgamal but no results were OK.
I would be glad if someone could help me with some example that matches my problem.