'Return the hash value of this object as a (lowercase) hexadecimal string'

def hexdigest(self):

    retval = b2a_hex(self.digest())
    assert (len(retval) == 64)
    if (sys.version_info[0] == 2):
        return retval
    else:
        return retval.decode()
