1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

Remove ecp_group_read_string()

This commit is contained in:
Manuel Pégourié-Gonnard
2015-05-11 18:11:57 +02:00
parent 23ee4d65a3
commit aff37e5aa1
3 changed files with 4 additions and 46 deletions

View File

@ -583,30 +583,6 @@ int mbedtls_ecp_tls_write_point( const mbedtls_ecp_group *grp, const mbedtls_ecp
return( 0 );
}
/*
* Import an ECP group from ASCII strings, case A == -3
*/
int mbedtls_ecp_group_read_string( mbedtls_ecp_group *grp, int radix,
const char *p, const char *b,
const char *gx, const char *gy, const char *n)
{
int ret;
MBEDTLS_MPI_CHK( mbedtls_mpi_read_string( &grp->P, radix, p ) );
MBEDTLS_MPI_CHK( mbedtls_mpi_read_string( &grp->B, radix, b ) );
MBEDTLS_MPI_CHK( mbedtls_ecp_point_read_string( &grp->G, radix, gx, gy ) );
MBEDTLS_MPI_CHK( mbedtls_mpi_read_string( &grp->N, radix, n ) );
grp->pbits = mbedtls_mpi_msb( &grp->P );
grp->nbits = mbedtls_mpi_msb( &grp->N );
cleanup:
if( ret != 0 )
mbedtls_ecp_group_free( grp );
return( ret );
}
/*
* Set a group from an ECParameters record (RFC 4492)
*/