mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
Don't ForceZero in assembly optimized versions.
This commit is contained in:
@@ -1036,9 +1036,9 @@ static int Transform_AVX1(Sha512* sha512)
|
|||||||
|
|
||||||
/* Wipe variables */
|
/* Wipe variables */
|
||||||
#if !defined(HAVE_INTEL_AVX1)&&!defined(HAVE_INTEL_AVX2)
|
#if !defined(HAVE_INTEL_AVX1)&&!defined(HAVE_INTEL_AVX2)
|
||||||
ForceZero(W_X, sizeof(word64) * 16);
|
XMEMSET(W_X, 0, sizeof(word64) * 16);
|
||||||
#endif
|
#endif
|
||||||
ForceZero(T, sizeof(T));
|
XMEMSET(T, 0, sizeof(T));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -1107,9 +1107,9 @@ static int Transform_AVX1_RORX(Sha512* sha512)
|
|||||||
|
|
||||||
/* Wipe variables */
|
/* Wipe variables */
|
||||||
#if !defined(HAVE_INTEL_AVX1)&&!defined(HAVE_INTEL_AVX2)
|
#if !defined(HAVE_INTEL_AVX1)&&!defined(HAVE_INTEL_AVX2)
|
||||||
ForceZero(W_X, sizeof(word64) * 16);
|
XMEMSET(W_X, 0, sizeof(word64) * 16);
|
||||||
#endif
|
#endif
|
||||||
ForceZero(T, sizeof(T));
|
XMEMSET(T, 0, sizeof(T));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -1287,9 +1287,9 @@ static int Transform_AVX2(Sha512* sha512)
|
|||||||
|
|
||||||
/* Wipe variables */
|
/* Wipe variables */
|
||||||
#if !defined(HAVE_INTEL_AVX1)&&!defined(HAVE_INTEL_AVX2)
|
#if !defined(HAVE_INTEL_AVX1)&&!defined(HAVE_INTEL_AVX2)
|
||||||
ForceZero(W, sizeof(word64) * 16);
|
XMEMSET(W, 0, sizeof(word64) * 16);
|
||||||
#endif
|
#endif
|
||||||
ForceZero(T, sizeof(T));
|
XMEMSET(T, 0, sizeof(T));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user