ec: check for valid curve names
0.15.15