Remove old interface for mem_move_to_left

Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
Dave Rodgman 2023-05-17 12:16:29 +01:00
parent debf8679e0
commit 6cee26db16
2 changed files with 1 additions and 21 deletions

View file

@ -327,7 +327,7 @@ void mbedtls_ct_mpi_uint_cond_assign(size_t n,
#if defined(MBEDTLS_PKCS1_V15) && defined(MBEDTLS_RSA_C) && !defined(MBEDTLS_RSA_ALT)
void mbedtls_ct_mem_move_to_left(void *start,
void mbedtls_ct_memmove_left(void *start,
size_t total,
size_t offset)
{

View file

@ -236,26 +236,6 @@ void mbedtls_ct_memcpy_offset(unsigned char *dest,
*/
unsigned mbedtls_ct_size_gt(size_t x, size_t y);
/** Shift some data towards the left inside a buffer.
*
* `mbedtls_ct_mem_move_to_left(start, total, offset)` is functionally
* equivalent to
* ```
* memmove(start, start + offset, total - offset);
* memset(start + offset, 0, total - offset);
* ```
* but it strives to use a memory access pattern (and thus total timing)
* that does not depend on \p offset. This timing independence comes at
* the expense of performance.
*
* \param start Pointer to the start of the buffer.
* \param total Total size of the buffer.
* \param offset Offset from which to copy \p total - \p offset bytes.
*/
void mbedtls_ct_mem_move_to_left(void *start,
size_t total,
size_t offset);
#endif /* defined(MBEDTLS_PKCS1_V15) && defined(MBEDTLS_RSA_C) && !defined(MBEDTLS_RSA_ALT) */