chiark
/
gitweb
/
~mdw
/
secnet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
memcmp: Introduce and use consttime_memeq
[secnet]
/
util.h
diff --git
a/util.h
b/util.h
index 7991743be32ab70196c41015934123fd044227ce..cbe9f52b785b8430f438ade5c3d7e53271fd16df 100644
(file)
--- a/
util.h
+++ b/
util.h
@@
-45,4
+45,6
@@
extern int32_t write_mpbin(MP_INT *a, uint8_t *buffer, int32_t buflen);
extern struct log_if *init_log(list_t *loglist);
+extern int consttime_memeq(const void *s1, const void *s2, size_t n);
+
#endif /* util_h */