feat(mbedtls): updated mbedtls version from 3.5.2 to 3.6.0

This MR updated MbedTLS version to latest version 3.6.0.
This commit is contained in:
nilesh.kale 2024-04-03 11:45:09 +05:30
parent ae1195f04e
commit ef7a749367
2 changed files with 5 additions and 9 deletions

@ -1 +1 @@
Subproject commit 09bba150d0d822aad2e58d71723f5407da5c21e0
Subproject commit 72aa687352a469044cbb946f3fdb261430e41ce1

View File

@ -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
*/
@ -16,11 +16,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
@ -99,8 +94,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->Z, 1 ) != 0 )