|
mbed TLS v3.1.0
|
Portable interface to timeouts and to the CPU cycle counter. More...
#include "mbedtls/private_access.h"#include "mbedtls/build_info.h"#include <stdint.h>#include "timing_alt.h"
Go to the source code of this file.
Functions | |
| unsigned long | mbedtls_timing_get_timer (struct mbedtls_timing_hr_time *val, int reset) |
| void | mbedtls_timing_set_delay (void *data, uint32_t int_ms, uint32_t fin_ms) |
Set a pair of delays to watch (See mbedtls_timing_get_delay().) More... | |
| int | mbedtls_timing_get_delay (void *data) |
| Get the status of delays (Memory helper: number of delays passed.) More... | |
Portable interface to timeouts and to the CPU cycle counter.
Definition in file timing.h.
| int mbedtls_timing_get_delay | ( | void * | data | ) |
Get the status of delays (Memory helper: number of delays passed.)
| data | Pointer to timing data Must point to a valid mbedtls_timing_delay_context struct. |
| unsigned long mbedtls_timing_get_timer | ( | struct mbedtls_timing_hr_time * | val, |
| int | reset | ||
| ) |
| void mbedtls_timing_set_delay | ( | void * | data, |
| uint32_t | int_ms, | ||
| uint32_t | fin_ms | ||
| ) |
Set a pair of delays to watch (See mbedtls_timing_get_delay().)
| data | Pointer to timing data. Must point to a valid mbedtls_timing_delay_context struct. |
| int_ms | First (intermediate) delay in milliseconds. The effect if int_ms > fin_ms is unspecified. |
| fin_ms | Second (final) delay in milliseconds. Pass 0 to cancel the current delay. |
mbedtls_timing_set_timer directly or use this function with int_ms == fin_ms.
1.8.6