case EC_GROUP_WTLS_6: ret = ec_group_new_GFp_from_hex(_EC_GROUP_WTLS_6); break; case EC_GROUP_WTLS_8: ret = ec_group_new_GFp_from_hex(_EC_GROUP_WTLS_8); break; case EC_GROUP_WTLS_9: ret = ec_group_new_GFp_from_hex(_EC_GROUP_WTLS_9); break;
EC_GROUP *EC_GROUP_new_by_name(int name)	{	EC_GROUP *ret = NULL;	switch (name)		{	case EC_GROUP_NO_CURVE:		return NULL;	/* some nist curves */	case EC_GROUP_NIST_PRIME_224: /* EC_GROUP_NIST_PRIME_224 == EC_GROUP_SECG_PRIME_224R1 */		ret = ec_group_new_GFp_from_hex(_EC_GROUP_NIST_PRIME_224);		break;	case EC_GROUP_NIST_PRIME_384: /* EC_GROUP_NIST_PRIME_384 == EC_GROUP_SECG_PRIME_384R1 */		ret = ec_group_new_GFp_from_hex(_EC_GROUP_NIST_PRIME_384);		break;	case EC_GROUP_NIST_PRIME_521: /* EC_GROUP_NIST_PRIME_521 == EC_GROUP_SECG_PRIME_521R1 */		ret = ec_group_new_GFp_from_hex(_EC_GROUP_NIST_PRIME_521);		break;	/* x9.62 prime curves */	case EC_GROUP_NIST_PRIME_192: /* EC_GROUP_NIST_PRIME_192 == EC_GROUP_SECG_PRIME_192R1 */	case EC_GROUP_X9_62_PRIME_192V1:		ret = ec_group_new_GFp_from_hex(_EC_GROUP_NIST_PRIME_192);		break;	case EC_GROUP_X9_62_PRIME_192V2:		ret = ec_group_new_GFp_from_hex(_EC_GROUP_X9_62_PRIME_192V2);		break;	case EC_GROUP_X9_62_PRIME_192V3:		ret = ec_group_new_GFp_from_hex(_EC_GROUP_X9_62_PRIME_192V3);		break;	case EC_GROUP_X9_62_PRIME_239V1:		ret = ec_group_new_GFp_from_hex(_EC_GROUP_X9_62_PRIME_239V1);		break;	case EC_GROUP_X9_62_PRIME_239V2:		ret = ec_group_new_GFp_from_hex(_EC_GROUP_X9_62_PRIME_239V2);		break;	case EC_GROUP_X9_62_PRIME_239V3:		ret = ec_group_new_GFp_from_hex(_EC_GROUP_X9_62_PRIME_239V3);		break;	case EC_GROUP_NIST_PRIME_256: /* EC_GROUP_NIST_PRIME_256 == EC_GROUP_SECG_PRIME_256R1 */	case EC_GROUP_X9_62_PRIME_256V1:		ret = ec_group_new_GFp_from_hex(_EC_GROUP_X9_62_PRIME_256V1);		break;	/* the remaining secg curves */	case EC_GROUP_SECG_PRIME_112R1:		ret = ec_group_new_GFp_from_hex(_EC_GROUP_SECG_PRIME_112R1);		break;	case EC_GROUP_SECG_PRIME_112R2:		ret = ec_group_new_GFp_from_hex(_EC_GROUP_SECG_PRIME_112R2);		break;	case EC_GROUP_SECG_PRIME_128R1:		ret = ec_group_new_GFp_from_hex(_EC_GROUP_SECG_PRIME_128R1);		break;	case EC_GROUP_SECG_PRIME_128R2:		ret = ec_group_new_GFp_from_hex(_EC_GROUP_SECG_PRIME_128R2);		break;	case EC_GROUP_SECG_PRIME_160K1:		ret = ec_group_new_GFp_from_hex(_EC_GROUP_SECG_PRIME_160K1);		break;	case EC_GROUP_SECG_PRIME_160R1:		ret = ec_group_new_GFp_from_hex(_EC_GROUP_SECG_PRIME_160R1);		break;	case EC_GROUP_SECG_PRIME_160R2:		ret = ec_group_new_GFp_from_hex(_EC_GROUP_SECG_PRIME_160R2);		break;	case EC_GROUP_SECG_PRIME_192K1:		ret = ec_group_new_GFp_from_hex(_EC_GROUP_SECG_PRIME_192K1);		break;	case EC_GROUP_SECG_PRIME_224K1:		ret = ec_group_new_GFp_from_hex(_EC_GROUP_SECG_PRIME_224K1);		break;	case EC_GROUP_SECG_PRIME_256K1:		ret = ec_group_new_GFp_from_hex(_EC_GROUP_SECG_PRIME_256K1);		break;		}	if (ret == NULL)		{		ECerr(EC_F_EC_GROUP_NEW_BY_NAME, EC_R_UNKNOWN_GROUP);		return NULL;		}	EC_GROUP_set_nid(ret, name);	return ret;	}