From ab5274bb19637c8e744f583cd732a1ebafd8d187 Mon Sep 17 00:00:00 2001 From: Przemek Stekiel Date: Mon, 28 Mar 2022 07:23:08 +0200 Subject: [PATCH] Remove parameters validation using ECP_VALIDATE_RET Signed-off-by: Przemek Stekiel --- library/ecp.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/library/ecp.c b/library/ecp.c index 71114cd90..f39cb0293 100644 --- a/library/ecp.c +++ b/library/ecp.c @@ -3363,10 +3363,6 @@ int mbedtls_ecp_export(const mbedtls_ecp_keypair *key, mbedtls_ecp_group *grp, mbedtls_mpi *d, mbedtls_ecp_point *Q) { 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 ) return ret;