Verify against whichever info-hash width expected is: a 20-byte digest is treated as a v1 (SHA-1) hash, a 32-byte digest as a v2 (SHA-256) hash. Any other width returns false.
false