From 8b1c6eebaccb1105adc29ec4ae76691df9e691fa Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?=
Date: Sun, 23 Jul 2017 01:50:37 -0700 Subject: [PATCH] maint: resync with blake2 upstream * src/blake2/blake2-impl.h: Don't use the equivalent explicit_bzero(). --- src/blake2/blake2-impl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/blake2/blake2-impl.h b/src/blake2/blake2-impl.h index 241e5abf5c..5dff7fc7a3 100644 --- a/src/blake2/blake2-impl.h +++ b/src/blake2/blake2-impl.h @@ -153,7 +153,8 @@ static BLAKE2_INLINE uint64_t rotr64( const uint64_t w, const unsigned c ) /* prevents compiler optimizing out memset() */ static BLAKE2_INLINE void secure_zero_memory(void *v, size_t n) { - explicit_bzero (v, n); + static void *(*const volatile memset_v)(void *, int, size_t) = &memset; + memset_v(v, 0, n); } #endif -- 2.47.2