t5512: abstract away SHA-1-specific constants