NID_hash and NID_ec_curve were interchanged