22#ifndef MBEDTLS_TIMING_H
23#define MBEDTLS_TIMING_H
25#if !defined(MBEDTLS_CONFIG_FILE)
28#include MBEDTLS_CONFIG_FILE
44#if !defined(MBEDTLS_TIMING_ALT)
53 unsigned char opaque[32];
67#include "timing_alt.h"
70extern volatile int mbedtls_timing_alarmed;
145#if defined(MBEDTLS_SELF_TEST)
151int mbedtls_timing_self_test(
int verbose );
Configuration options (set of defines)
unsigned long mbedtls_timing_get_timer(struct mbedtls_timing_hr_time *val, int reset)
Return the elapsed time in milliseconds.
void mbedtls_set_alarm(int seconds)
Setup an alarm clock.
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().)
unsigned long mbedtls_timing_hardclock(void)
Return the CPU cycle counter value.
int mbedtls_timing_get_delay(void *data)
Get the status of delays (Memory helper: number of delays passed.)
Context for mbedtls_timing_set/get_delay()