hash and signed encrypted data