[tor-commits] [stem/master] Further simplify digest calculation for encryption