Replace stubs with the hash and sign functions