mbedtls_ct_zeroize_if() function
Conditionally set a block of memory to zero. Regardless of the condition, every byte will be read once and written to once. \warning Unlike mbedtls_platform_zeroize, this does not have the same guarantees about not being optimised away if the memory is never read again.
Arguments
condition
Secret. Condition to test.
buf
Secret. Pointer to the start of the buffer.
len
Number of bytes to set to zero.
mbedtls_ct_zeroize_if() is called by 1 function:
![]()
mbedtls_ct_zeroize_if()
mbedtls_ct_zeroize_if():
![]()
mbedtls_ct_zeroize_if()