Remove parameters validation using ECP_VALIDATE_RET
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com>
This commit is contained in:
parent
2076cbe511
commit
ab5274bb19
1 changed files with 0 additions and 4 deletions
|
@ -3363,10 +3363,6 @@ int mbedtls_ecp_export(const mbedtls_ecp_keypair *key, mbedtls_ecp_group *grp,
|
||||||
mbedtls_mpi *d, mbedtls_ecp_point *Q)
|
mbedtls_mpi *d, mbedtls_ecp_point *Q)
|
||||||
{
|
{
|
||||||
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
|
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
|
||||||
ECP_VALIDATE_RET( key != NULL );
|
|
||||||
ECP_VALIDATE_RET( grp != NULL );
|
|
||||||
ECP_VALIDATE_RET( d != NULL );
|
|
||||||
ECP_VALIDATE_RET( Q != NULL );
|
|
||||||
|
|
||||||
if( ( ret = mbedtls_ecp_group_copy( grp, &key->grp ) ) != 0 )
|
if( ( ret = mbedtls_ecp_group_copy( grp, &key->grp ) ) != 0 )
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue