From 24cfba4276d1ef7f4eb6a248bc887d8823d220ba Mon Sep 17 00:00:00 2001 From: Sean Parkinson Date: Fri, 11 Nov 2016 13:14:58 +1000 Subject: [PATCH] Fix ForceZero calls --- wolfcrypt/src/sha512.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/wolfcrypt/src/sha512.c b/wolfcrypt/src/sha512.c index 4cf2ad3d9..226482e16 100644 --- a/wolfcrypt/src/sha512.c +++ b/wolfcrypt/src/sha512.c @@ -1038,9 +1038,9 @@ static int Transform_AVX1(Sha512* sha512) /* Wipe variables */ #if !defined(HAVE_INTEL_AVX1)&&!defined(HAVE_INTEL_AVX2) - ForceZero(W_X, 0, sizeof(word64) * 16); + ForceZero(W_X, sizeof(word64) * 16); #endif - ForceZero(T, 0, sizeof(T)); + ForceZero(T, sizeof(T)); return 0; } @@ -1109,9 +1109,9 @@ static int Transform_AVX1_RORX(Sha512* sha512) /* Wipe variables */ #if !defined(HAVE_INTEL_AVX1)&&!defined(HAVE_INTEL_AVX2) - ForceZero(W_X, 0, sizeof(word64) * 16); + ForceZero(W_X, sizeof(word64) * 16); #endif - ForceZero(T, 0, sizeof(T)); + ForceZero(T, sizeof(T)); return 0; } @@ -1289,9 +1289,9 @@ static int Transform_AVX2(Sha512* sha512) /* Wipe variables */ #if !defined(HAVE_INTEL_AVX1)&&!defined(HAVE_INTEL_AVX2) - ForceZero(W, 0, sizeof(word64) * 16); + ForceZero(W, sizeof(word64) * 16); #endif - ForceZero(T, 0, sizeof(T)); + ForceZero(T, sizeof(T)); return 0; }