maint: resync with blake2 upstream

* src/blake2/blake2-impl.h: Don't use the equivalent explicit_bzero().
This commit is contained in:
Pádraig Brady committed 2017-07-23 12:25:40 -07:00
1 parent 388e150792
commit 8b1c6eebac
1 file changed
+2 -1
+2 -1
View 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