123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- #ifndef OCRYPTO_CONSTANT_TIME_H
- #define OCRYPTO_CONSTANT_TIME_H
- #include <stddef.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- int ocrypto_constant_time_equal(const void *x, const void *y, size_t length);
- int ocrypto_constant_time_is_zero(const void *x, size_t length);
- void ocrypto_constant_time_copy(void *x, const void *y, size_t length);
- void ocrypto_constant_time_fill_zero(void *x, size_t length);
- #ifdef __cplusplus
- }
- #endif
- #endif
|