From 854023f054291b7ecebb98ce5d91701caf244713 Mon Sep 17 00:00:00 2001 From: Xin LI Date: Sun, 14 Aug 2016 23:38:50 +0000 Subject: Add timingsafe_bcmp and timingsafe_memcmp. Obtained from: OpenBSD Reviewed by: trasz MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D7280 --- include/string.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/string.h') diff --git a/include/string.h b/include/string.h index af8b0d46c86c..9fe1f826d9cd 100644 --- a/include/string.h +++ b/include/string.h @@ -134,6 +134,8 @@ typedef __ssize_t ssize_t; void swab(const void * __restrict, void * __restrict, ssize_t); #endif /* _SWAB_DECLARED */ +int timingsafe_bcmp(const void *, const void *, size_t); +int timingsafe_memcmp(const void *, const void *, size_t); #endif /* __BSD_VISIBLE */ #if __POSIX_VISIBLE >= 200809 || defined(_XLOCALE_H_) -- cgit v1.2.3