update digest.