Public key encryption uses key pairs (public and private keys) to encrypt and decrypt messages. Digital signatures authenticate messages by encrypting a message digest with the private key. To send an encrypted and signed message:
1. The sender calculates a message digest and signs it with their private key.
2. A symmetric key is generated and used to encrypt the message and signature.
3. The symmetric key is encrypted with the recipient's public key and sent with the encrypted message and signature. The recipient decrypts the symmetric key to decrypt and verify the message.