t4045: abstract away SHA-1-specific constants