ensure that a ec key is used