Move to the new-style API for crypto:hash/2.