Skip to content

Commit fe628d5

Browse files
committed
feat(mbedtls): updated mbedtls version from 3.5.2 to 3.6.0
This MR updated MbedTLS version to latest version 3.6.0.
1 parent 8ed4258 commit fe628d5

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

components/mbedtls/mbedtls

Submodule mbedtls updated 504 files

components/mbedtls/port/ecc/ecc_alt.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2021-2024 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -11,11 +11,6 @@
1111
#include "mbedtls/ecp.h"
1212
#include "mbedtls/platform_util.h"
1313

14-
#define ECP_VALIDATE_RET( cond ) \
15-
MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_ECP_BAD_INPUT_DATA )
16-
#define ECP_VALIDATE( cond ) \
17-
MBEDTLS_INTERNAL_VALIDATE( cond )
18-
1914
#if defined(MBEDTLS_ECP_MUL_ALT) || defined(MBEDTLS_ECP_MUL_ALT_SOFT_FALLBACK)
2015

2116
#define MAX_SIZE 32 // 256 bits
@@ -94,8 +89,9 @@ int mbedtls_ecp_check_pubkey( const mbedtls_ecp_group *grp,
9489
#endif
9590
}
9691

97-
ECP_VALIDATE_RET( grp != NULL );
98-
ECP_VALIDATE_RET( pt != NULL );
92+
if (grp == NULL || pt == NULL) {
93+
return MBEDTLS_ERR_ECP_BAD_INPUT_DATA;
94+
}
9995

10096
/* Must use affine coordinates */
10197
if( mbedtls_mpi_cmp_int( &pt->MBEDTLS_PRIVATE(Z), 1 ) != 0 )

0 commit comments

Comments
 (0)