mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-18 01:14:06 +00:00
Fix code style
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
21445c580f
commit
e91d924821
@ -782,8 +782,9 @@ static inline void exp_mod_calc_first_bit_optionally_safe(const mbedtls_mpi_uint
|
|||||||
*E_bit_index = E_bits % biL;
|
*E_bit_index = E_bits % biL;
|
||||||
|
|
||||||
#if defined(MBEDTLS_TEST_HOOKS) && !defined(MBEDTLS_THREADING_C)
|
#if defined(MBEDTLS_TEST_HOOKS) && !defined(MBEDTLS_THREADING_C)
|
||||||
if(mbedtls_unsafe_codepath_hook != NULL)
|
if (mbedtls_unsafe_codepath_hook != NULL) {
|
||||||
mbedtls_unsafe_codepath_hook();
|
mbedtls_unsafe_codepath_hook();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
/*
|
/*
|
||||||
@ -793,8 +794,9 @@ static inline void exp_mod_calc_first_bit_optionally_safe(const mbedtls_mpi_uint
|
|||||||
*E_limb_index = E_limbs;
|
*E_limb_index = E_limbs;
|
||||||
*E_bit_index = 0;
|
*E_bit_index = 0;
|
||||||
#if defined(MBEDTLS_TEST_HOOKS) && !defined(MBEDTLS_THREADING_C)
|
#if defined(MBEDTLS_TEST_HOOKS) && !defined(MBEDTLS_THREADING_C)
|
||||||
if(mbedtls_safe_codepath_hook != NULL)
|
if (mbedtls_safe_codepath_hook != NULL) {
|
||||||
mbedtls_safe_codepath_hook();
|
mbedtls_safe_codepath_hook();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -813,8 +815,9 @@ static inline void exp_mod_table_lookup_optionally_safe(mbedtls_mpi_uint *Wselec
|
|||||||
if (window_public == MBEDTLS_MPI_IS_PUBLIC) {
|
if (window_public == MBEDTLS_MPI_IS_PUBLIC) {
|
||||||
memcpy(Wselect, Wtable + window * AN_limbs, AN_limbs * ciL);
|
memcpy(Wselect, Wtable + window * AN_limbs, AN_limbs * ciL);
|
||||||
#if defined(MBEDTLS_TEST_HOOKS) && !defined(MBEDTLS_THREADING_C)
|
#if defined(MBEDTLS_TEST_HOOKS) && !defined(MBEDTLS_THREADING_C)
|
||||||
if(mbedtls_unsafe_codepath_hook != NULL)
|
if (mbedtls_unsafe_codepath_hook != NULL) {
|
||||||
mbedtls_unsafe_codepath_hook();
|
mbedtls_unsafe_codepath_hook();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
/* Select Wtable[window] without leaking window through
|
/* Select Wtable[window] without leaking window through
|
||||||
@ -822,8 +825,9 @@ static inline void exp_mod_table_lookup_optionally_safe(mbedtls_mpi_uint *Wselec
|
|||||||
mbedtls_mpi_core_ct_uint_table_lookup(Wselect, Wtable,
|
mbedtls_mpi_core_ct_uint_table_lookup(Wselect, Wtable,
|
||||||
AN_limbs, welem, window);
|
AN_limbs, welem, window);
|
||||||
#if defined(MBEDTLS_TEST_HOOKS) && !defined(MBEDTLS_THREADING_C)
|
#if defined(MBEDTLS_TEST_HOOKS) && !defined(MBEDTLS_THREADING_C)
|
||||||
if(mbedtls_safe_codepath_hook != NULL)
|
if (mbedtls_safe_codepath_hook != NULL) {
|
||||||
mbedtls_safe_codepath_hook();
|
mbedtls_safe_codepath_hook();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user