1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
-
- #ifndef _TIMING_ALT_H_
- #define _TIMING_ALT_H_
- #if !defined(MBEDTLS_CONFIG_FILE)
- #include "config.h"
- #else
- #include MBEDTLS_CONFIG_FILE
- #endif
- #include "stdint.h"
- struct mbedtls_timing_hr_time {
- uint64_t timer_ms;
- };
- typedef struct {
- struct mbedtls_timing_hr_time timer;
- uint32_t int_ms;
- uint32_t fin_ms;
- } mbedtls_timing_delay_context;
- 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);
- int mbedtls_timing_get_delay(void *data);
- #endif
|