string build_digestinfo(string msg, object hash)
In Pike 7.6 the hash is required to be a Crypto.Hash object.