Remove old interface for mem_move_to_left
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
diff --git a/library/constant_time.c b/library/constant_time.c
index af385cd..32c0e5a 100644
--- a/library/constant_time.c
+++ b/library/constant_time.c
@@ -327,7 +327,7 @@
#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)
{
diff --git a/library/constant_time_internal.h b/library/constant_time_internal.h
index d1e3755..5e0d9c4 100644
--- a/library/constant_time_internal.h
+++ b/library/constant_time_internal.h
@@ -236,26 +236,6 @@
*/
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) */