]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: resync with blake2 upstream
authorPádraig Brady <P@draigBrady.com>
Sun, 23 Jul 2017 08:50:37 +0000 (01:50 -0700)
committerPádraig Brady <P@draigBrady.com>
Sun, 23 Jul 2017 19:25:40 +0000 (12:25 -0700)
* src/blake2/blake2-impl.h: Don't use the equivalent explicit_bzero().

src/blake2/blake2-impl.h

index 241e5abf5c1871bb25a890d0ec1b32cec7c52958..5dff7fc7a3d836360b5fed69993a8b44ff100f6f 100644 (file)
@@ -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