Public key encryption clarification please
Hi I was wondering if someone could clarify for me the details of public to public key encryption and public to private! I have a fair understanding but I would like to know a bit more about it, for example what exactly goes into the process, such as when it's public to public i know the keys encrypted using AES or something like that but what's the deal breaker? What makes the other side acknowledge and accept the person AND what goes into whatever the deal break is to? If it is a shared secret how is that generated? I would just like to know the actual details of it.