[tor-commits] [tor/master] prop289: Move digest matching in its own function