[PATCH 5/7] bcrypt: Validate key type.