tring <i>propq</i>. The <i>ctx</i> parameter may be NULL in which case the default library context is used. The reference count for the newly created EC_KEY is initially set to 1. A curve can be associated with the EC_KEY by calling EC_KEY_set_group().</p>

<p>EC_KEY_new() is the same as EC_KEY_new_ex() except that the default library context is always used.</p>

<p>Alternatively a new EC_KEY can be constructed by calling EC_KEY_new_by_curve_name_ex() and supplying the nid of the associated curve, the libra