Use the new crypto functions.

crypto:hmac and crypto:hash should be used in newer releases.