Lines Matching refs:curve_info
184 const mbedtls_ecp_curve_info *curve_info; in mbedtls_ecp_grp_id_list() local
186 for( curve_info = mbedtls_ecp_curve_list(); in mbedtls_ecp_grp_id_list()
187 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in mbedtls_ecp_grp_id_list()
188 curve_info++ ) in mbedtls_ecp_grp_id_list()
190 ecp_supported_grp_id[i++] = curve_info->grp_id; in mbedtls_ecp_grp_id_list()
205 const mbedtls_ecp_curve_info *curve_info; in mbedtls_ecp_curve_info_from_grp_id() local
207 for( curve_info = mbedtls_ecp_curve_list(); in mbedtls_ecp_curve_info_from_grp_id()
208 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in mbedtls_ecp_curve_info_from_grp_id()
209 curve_info++ ) in mbedtls_ecp_curve_info_from_grp_id()
211 if( curve_info->grp_id == grp_id ) in mbedtls_ecp_curve_info_from_grp_id()
212 return( curve_info ); in mbedtls_ecp_curve_info_from_grp_id()
223 const mbedtls_ecp_curve_info *curve_info; in mbedtls_ecp_curve_info_from_tls_id() local
225 for( curve_info = mbedtls_ecp_curve_list(); in mbedtls_ecp_curve_info_from_tls_id()
226 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in mbedtls_ecp_curve_info_from_tls_id()
227 curve_info++ ) in mbedtls_ecp_curve_info_from_tls_id()
229 if( curve_info->tls_id == tls_id ) in mbedtls_ecp_curve_info_from_tls_id()
230 return( curve_info ); in mbedtls_ecp_curve_info_from_tls_id()
241 const mbedtls_ecp_curve_info *curve_info; in mbedtls_ecp_curve_info_from_name() local
243 for( curve_info = mbedtls_ecp_curve_list(); in mbedtls_ecp_curve_info_from_name()
244 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in mbedtls_ecp_curve_info_from_name()
245 curve_info++ ) in mbedtls_ecp_curve_info_from_name()
247 if( strcmp( curve_info->name, name ) == 0 ) in mbedtls_ecp_curve_info_from_name()
248 return( curve_info ); in mbedtls_ecp_curve_info_from_name()
598 const mbedtls_ecp_curve_info *curve_info; in mbedtls_ecp_tls_read_group() local
619 if( ( curve_info = mbedtls_ecp_curve_info_from_tls_id( tls_id ) ) == NULL ) in mbedtls_ecp_tls_read_group()
622 return mbedtls_ecp_group_load( grp, curve_info->grp_id ); in mbedtls_ecp_tls_read_group()
631 const mbedtls_ecp_curve_info *curve_info; in mbedtls_ecp_tls_write_group() local
633 if( ( curve_info = mbedtls_ecp_curve_info_from_grp_id( grp->id ) ) == NULL ) in mbedtls_ecp_tls_write_group()
651 buf[0] = curve_info->tls_id >> 8; in mbedtls_ecp_tls_write_group()
652 buf[1] = curve_info->tls_id & 0xFF; in mbedtls_ecp_tls_write_group()