EC_GROUP_dup
key->group = EC_GROUP_dup(group);
dctx->gen_group = EC_GROUP_dup(sctx->gen_group);
EC_GROUP *EC_GROUP_dup(const EC_GROUP *src);