Skip to content

Commit 778143f

Browse files
ccli8cmonr
authored andcommitted
Refine internal_mpi_write_eccreg in ECP alter.
1 parent e9be37d commit 778143f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/mbedtls/targets/TARGET_NUVOTON/TARGET_M480/ecp/ecp_internal_alt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ NU_STATIC int internal_mpi_write_eccreg( const mbedtls_mpi *x, volatile uint32_t
797797
*
798798
* crypto_zeroize32() has excluded optimization doubt, so we can safely set H/W registers to 0 via it.
799799
*/
800-
crypto_zeroize32((uint32_t *) eccreg + i, eccreg_num - i);
800+
crypto_zeroize32((uint32_t *) eccreg + n, eccreg_num - n);
801801

802802
return 0;
803803
}

0 commit comments

Comments
 (0)