Refactored message signing. Signature bases now on the encrypted message
itself.