diff options
author | Matt Johnston <matt@ucc.asn.au> | 2013-10-20 21:07:05 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2013-10-20 21:07:05 +0800 |
commit | 27510a6e9eb8f54a8f109fa9f29481e8f8170862 (patch) | |
tree | 3f2bc382407148b2e3eae7ecccce24e645ff5340 /dbutil.h | |
parent | 7fda6418e15a92fd538a5e72682de94f90b6e060 (diff) | |
parent | 45bd0edae52c07daa2d54ca7f7c0a57d51130791 (diff) |
merge
--HG--
branch : ecc
Diffstat (limited to 'dbutil.h')
-rw-r--r-- | dbutil.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -95,4 +95,7 @@ int m_str_to_uint(const char* str, unsigned int *val); /* Dropbear assertion */ #define dropbear_assert(X) do { if (!(X)) { fail_assert(#X, __FILE__, __LINE__); } } while (0) +/* Returns 0 if a and b have the same contents */ +int constant_time_memcmp(const void* a, const void *b, size_t n); + #endif /* _DBUTIL_H_ */ |