t3905: abstract away SHA-1-specific constants