Assume Bob is sender and Alice is future recipient.
In ideal situation Bob know Alice public key, and encrypt message with it.
But what if Bob don't know Alice public key (he only will know Alice public key when agreement met), I saw two solutions:
- Bob encrypt message with Alice pub key after agreement met and pub key revealed
- We have 3rd party, let's say Kate. Bob encrypt message and give symmetric key to Kate. After agreement met, Kate re-encrypt it with Alice pub key.
However, in first scenario we rely on Bob (he could not encrypt/send message after agreement met), and on second scenario we rely on 3rd party Kate (she could know original message (by re-encrypt with own pub key), + she could not send message after agreement met too)
Is it possible to do without rely on Bob or Kate but also take into consideration that Alice pub key is unknown at time Bob encrypting message.
Or if we use Kate scenario and rely on 3rd party, is it possible that she couldn't know original message?