Encrypts and signs a message.