Tidy-ups for ec keys