[PATCH 1/8 resend] bcrypt/tests: Use common helper for testing different hash types.