mbedtls_ct_memmove_left() function
Shift some data towards the left inside a buffer. Functionally equivalent to: memmove(start, start + offset, total - offset); memset(start + (total - offset), 0, offset); Timing independence comes at the expense of performance.
Arguments
start
Secret. Pointer to the start of the buffer.
total
Total size of the buffer.
offset
Secret. Offset from which to copy \p total - \p offset bytes.