Skip to content

Commit

Permalink
Merge branch 'feature/update_mbedtls_to_3.6.0_v5.3' into 'release/v5.3'
Browse files Browse the repository at this point in the history
feat(mbedtls): updated mbedtls version from 3.5.2 to 3.6.0 (v5.3)

See merge request espressif/esp-idf!30668
  • Loading branch information
mahavirj committed May 9, 2024
2 parents 7165a3b + fe628d5 commit 8503709
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion components/mbedtls/mbedtls
Submodule mbedtls updated 504 files
12 changes: 4 additions & 8 deletions components/mbedtls/port/ecc/ecc_alt.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2021-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand All @@ -11,11 +11,6 @@
#include "mbedtls/ecp.h"
#include "mbedtls/platform_util.h"

#define ECP_VALIDATE_RET( cond ) \
MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_ECP_BAD_INPUT_DATA )
#define ECP_VALIDATE( cond ) \
MBEDTLS_INTERNAL_VALIDATE( cond )

#if defined(MBEDTLS_ECP_MUL_ALT) || defined(MBEDTLS_ECP_MUL_ALT_SOFT_FALLBACK)

#define MAX_SIZE 32 // 256 bits
Expand Down Expand Up @@ -94,8 +89,9 @@ int mbedtls_ecp_check_pubkey( const mbedtls_ecp_group *grp,
#endif
}

ECP_VALIDATE_RET( grp != NULL );
ECP_VALIDATE_RET( pt != NULL );
if (grp == NULL || pt == NULL) {
return MBEDTLS_ERR_ECP_BAD_INPUT_DATA;
}

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

0 comments on commit 8503709

Please sign in to comment.