Encryption integrity check, used raw output of hmac

Used raw input instead of hexified input of hash_hmac, to help reduce message lengths.