An encryption function for hashing data in the Bitcoin protocol